I"m having a problem with ActionMailer (I believe). I''m trying to
send a
registration email. I''m in development mode, using sendmail to deliver
messages. I see this in my logs:
------
Sent mail:
From: <from>
To: <address>
Subject: Your new account
Content-Type: text/plain; charset=utf-8
You, or someone using this email address, has created an account at...
------
But, when the message gets to my gmail account it looks like this:
------
Return-Path: <parker-LiDmDAENf0H0yCXKV2LRy0B+6BGkLq7r@public.gmane.org>
Received: from cracker.********* (********.speakeasy.net)
by mx.gmail.com with ESMTP id 12si2022434nzn.2005.10.27.17.31.53;
Thu, 27 Oct 2005 17:32:09 -0700 (PDT)
Received-SPF: neutral (gmail.com: 72.1.14.**.** is neither permitted nor
denied by best guess record for domain of parker@cracker.********)
Date: Thu, 27 Oct 2005 17:32:09 -0700 (PDT)
Message-Id:
<43617189.19203200.23ce.ffffd8a6SMTPIN_ADDED-49w3T8ftje9Wk0Htik3J/w@public.gmane.org>
Received: by cracker.********* (Postfix, from userid 501)
id A6B081EDDCE; Thu, 27 Oct 2005 17:30:54 -0700 (PDT)
From: <from>
To: <to>
Subject: Your new account
Content-Type: text/plain; charset=utf-8
Message-Id:
<20051028003054.A6B081EDDCE-LiDmDAENf0H0yCXKV2LRy0B+6BGkLq7r@public.gmane.org>
Date: Thu, 27 Oct 2005 17:30:54 -0700 (PDT)
You, or someone using this email address, has created an account at....
------
As you can see above there are two returns after the Subject header,
though there are serveral other headers to follow. These become part of
the body of the message. The code model code is pretty simple:
def pw_changed(user = nil, sent_at = Time.now)
@subject = ''New Account''
@body = {}
@recipients = user.email
@from = SITE_HELP_EMAIL
@sent_on = sent_at
@headers = {}
@body["user"] = user
end
I did not see this talked about on the wiki or the mailing list archives.
Any help would be apreciated. Thanks,
pt.
------
Parker Thompson
Professional
(w) http://placesite.com
(c) 510.541.0125