i was having trobule implementing actionmailer on a new server of my app
working with mongrel_rails + postfix . . . beforehand, while developing,
i was using postfix + webrick, and i could send emails quite easily; in
fact, there was no problem at all…
however, with mongrel_rails, it seems the action mailer doesn’t have the
right configuration to access the postfix server. ie, ACTIONMAILER
DOESN’T SEND ANY EMAILS!! i’ve been rubbing my head on this for about
six-seven hours, and i have no idea where to proceed from here…pretty
weak documentation as far as i have gone around.
is there a slight chance anyone has some hidden resource on the web i
haven’t found? or someone know of where i put this configuration?
many thanks for any help, or any lead…
however, with mongrel_rails, it seems the action mailer doesn’t
john
Hi,
The environment would be my first guess if Webrick works and Mongrel
doesn’t.
Any chance that Mongrel is running with the Rails environment set to
‘development?’ By default, I think config/development.rb has this line:
config.action_mailer.raise_delivery_errors = false
So you wouldn’t see delivery errors as exceptions.
And in test, ActionMailer doesn’t use the MTA at all:
config.action_mailer.delivery_method = :test
I have an application that uses mongrel_clusters and postfix and it
works just fine “out of the box”. I basically followed the Action
Mailer chapter in the Agile book.