Is there any more documentation on ActionMailer than what is found here: http://api.rubyonrails.com/classes/ActionMailer/Base.html I am having a lot of difficulty getting ActionMailer to correctly do smtp authentication with my mail server, but the docs are quite obtuse. Thanks! -- Kimball
On Sep 9, 2005, at 11:23 AM, Kimball Larsen wrote:> Is there any more documentation on ActionMailer than what is found > here: > http://api.rubyonrails.com/classes/ActionMailer/Base.html > > I am having a lot of difficulty getting ActionMailer to correctly > do smtp authentication with my mail server, but the docs are quite > obtuse. > > Thanks! >Specifically, I am seeing this in my mail server log: (Postfix, if that matters) Sep 9 11:35:24 localhost postfix/smtpd[9448]: connect from unknown [192.168.1.14] Sep 9 11:35:25 localhost postfix/smtpd[9448]: lost connection after HELO from unknown[192.168.1.14] Sep 9 11:35:25 localhost postfix/smtpd[9448]: disconnect from unknown [192.168.1.14] I need to see the conversation from the perspective of ActionMailer - but its logging is not very verbose.. is there any way to see the commands it is sending to the SMTP server (short of port sniffing?) Thanks! --- Kimball
* Kimball Larsen [2005-09-09 13:43]:> I need to see the conversation from the perspective of ActionMailer - > but its logging is not very verbose.. is there any way to see the > commands it is sending to the SMTP server (short of port sniffing?)I just took a quick look in there and I believe you''re going to need to be looking in Net::SMTP, as that''s where the actual sending is going on. ActionMailer coordinates with TMail and all that, but uses Net::SMTP to do the sending. Perhaps: Net::SMTP#set_debug_output http://www.ruby-doc.org/stdlib/libdoc/net/smtp/rdoc/classes/Net/SMTP.html#M000008 (note the security warnings it mentions) from a quick look that seems like it might be what you want; if not you''ll have perhaps mangle Net::SMTP a bit to spit out its messages to a log or console as well as the target server. -- ________________________________ toddgrimason*todd[ at ]slack.net