ruby on rails - Action Mailer Not deliver Mails -
i created mailer delivered when order placed.
here code of mailer:
class ordermailer < applicationmailer def order_placed(order) @order = order mail(to: @order.billing.email, subject: 'you placed order') end end here how call in order controller
ordermailer.order_placed(@order).deliver_now this logs:
sent mail <the right email address> (601.7ms) date: fri, 11 nov 2016 01:39:43 +0200 from: <the default address> to: <the right email address> message-id: <5825053f9c6db_52d73f963017a9208549b@thrasos.mail> subject: <the subject> mime-version: 1.0 content-type: text/html; charset=utf-8 content-transfer-encoding: base64 redirected http://localhost:3000/ completed 302 found in 3320ms (activerecord: 67.9ms) i using mailgun smtp.
the weird devise transaction mails works fine , contact form too.
Comments
Post a Comment