ruby - Rails 4 actionmailer not sending emails -
I have tried everything I can think of sending email with rail 4.1.6 (local development) Nothing is working. I have the following in my development using postmark. Rb and application.rb:
config.action_mailer.default_url_options = {host: 'localhost', port: 3000} config.action_mailer.delivery_method =: postmark config.action_mailer.postmark_settings = {: api_key = & Gt; API_KEY} config.action_mailer.perform_deliveries = true
and I have tried GMAIL:
config.action_mailer.default_url_options = {host: 'localhost', Port: 3000} config.action_mailer.perform_deliveries = true config.action_mailer.delivery_method =: smtp config.action_mailer.smtp_settings = {address: 'smtp.gmail.com', port: 587, domain: 'gmail.com', user_name: My_email ', password:' my_password ', authentication:' plain ', enable_starttls_auto: true}
My mailer class looks like this:
Category BusinessMailer & Lt; ActionMailer :: Base default: "my_email@email.com" DF claims_business business mail (: topic => 'Hello', '' myemail@email.com '', from: & gt; 'myemail @ Finally at the end of the email
and I'm sending: 'html' = 'gt;' & lt; strong & gt; Hello John Do & lieutenant; Strong & gt; ',: Email via track_opens = & gt; BusinessMailer.claim_business @ business
When I look at the claim_business
method, call me BusinessMailer # claim_business : Process Outbound Mail in 14.1 MS
No Error Messages in My Console Can anyone tell me what I am missing here?
You can call Unavailable
method Finally try to send email:
BusinessMailer.claim_business (@business). Deliver
Comments
Post a Comment