Hey, I'm using ActionMailer to send emails, but the recipient never
receives them.
Here's the method in my Notifier class:
def order_placed(order)
recipients order.user.email
from "orders@soundcastsystems.com"
subject "Your Soundcast Systems Order"
body :order => order
end
And here's a snip from the log (development):
...snip...
Address Load (0.002011) SELECT * FROM `addresses` WHERE
(`addresses`.addressable_id = 5 AND `addresses`.addressable_type =
'Order' AND (addresses.which = 'shipping')) LIMIT 1
Payment Load (0.001367) SELECT * FROM `payments` WHERE
(`payments`.order_id = 5) LIMIT 1
Payment Columns (0.003850) SHOW FIELDS FROM `payments`
User Load (0.000760) SELECT * FROM `users` WHERE (`users`.`id` =
1)
Sent mail to gregx999@gmail.com
I set it. I assume the settings are correct as there are no errors in
the log. Would it insert an error in the log or give me an error page
if it couldn't login to the server to send the mail?
I set it. I assume the settings are correct as there are no errors in
the log. Would it insert an error in the log or give me an error page
if it couldn't login to the server to send the mail?
Depends on the delivery method. For example if you set it to sendmail
and sendmail accepts the item you won't get an error message, even if
sendmail then later on drops it on the floor.