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 “[email protected]”
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 [email protected]
From: [email protected]
To: [email protected]
Subject: Your Soundcast Systems Order
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Hi Greg Burger, you placed an order.
This is a test.
SQL (0.000518) BEGIN
SQL (0.000189) COMMIT
…snip…
From that snip of the log, it certainly seems as if the email is being
sent. I tried to have it sent to a few
different addresses, and none of them ever actually get the email. (I
looked in my Junk folders too.)
I saw in a previous thread someone was having a similar problem, but
they just had an empty “to” field.
Any ideas?
Thanks,
Greg