Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pony will not work in a production environment with current code. #1

Open
jnskender opened this issue Apr 7, 2017 · 0 comments
Open

Comments

@jnskender
Copy link

You have configured your production and development settings correctly but have not actually used them in the send_message helper. It should look like this -

    def send_message
      Pony.mail(
        :from => params[:name] + "<" + params[:email] + ">",
        :to => '____@gmail.com',
        :subject => params[:name] + " has contacted you",
        :body => params[:message],
        :via => :smtp,
        :via_options => {
          :address              => settings.email_address,
          :port                 => '587',
          :enable_starttls_auto => true,
          :user_name            => settings.email_user_name,
          :password             => settings.email_password,
          :authentication       => :plain,
          :domain               => settings.email_domain
        }
      )
    end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant