I am having most email sent from ActionMailer get tagged as Junk (by Mac
Mail). I tried changing the id (which did not fix my problem) but maybe
it will for outlook.
locate your ActionMailer project files and edit utils.rb
(I am on a Mac and my path to the utils.rb is
/opt/local/lib/ruby/gems/1.8/gems/actionmailer-1.2.1/lib/action_mailer/utils.rb)
I commented out the first couple of lines and added the bottom one
Here is a snippet:
def TMail.new_message_id( fqdn = nil )
#fqdn ||= ::Socket.gethostname
#"<#{random_tag()}@#{fqdn}.tmail>"
"<#{random_tag()}@yourdomainname.com>"
end
This did not fix my problem though. Simple text or simple emails get
tagged as junk, however, if you sent a larger html email with links to
external images, etc.. they do not get tagged as junk.
I think it probably has something to do with mime-types and scoring
systems. Hope this helps!
Dylan Markow wrote:> Whenever I send e-mails through rails, part of the header comes out
> as follows:
>
> From: johndoe@domain1.com
> To: janedoe@domain2.com
> Message-Id: <442aba6514d50_154f7ba03530@iMac.local.tmail>
>
> With Outlook 2003 SP2''s new "anti-phishing" feature,
it''s tagging all
> of these e-mails as junk. I tried sending the same content from my
> mail software, using the same e-mail addresses and everything. The
> headers come out nearly identical, except that the Message-Id from my
> mail software has @domain1.com at the end, not @iMac.local.tmail.
I''m
> assuming Outlook is comparing the From domain and the Message-id
> domain, deciding they don''t match, and marking it as junk.
>
> My question is, is there a way to change the message id domain?
I''ve
> tried setting it manually using:
>
> @headers = { ''message-id'' =>
''442aba6514d50_154f7ba03530@domain1.com''>
>
> but it doesn''t work, as the resulting e-mail message still has the
> iMac.local.tmail domain.
>
> Thanks!
--
Posted via http://www.ruby-forum.com/.