-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Message created (SingleTo) not putting recipient in To: header #1
Comments
Hi Dan, I'm not sure about the issue you're having with SingleTo, but here is how I am using the code successfully: <?php
$mailer = new AmazonSESMailer(AWS_ACCESS_KEY_ID, AWS_SECRET_KEY);
$mailer->SetFrom($from);
$mailer->AddAddress($to);
$mailer->Subject = $subject;
$mailer->AltBody = $text;
$mailer->MsgHTML($html);
$mailer->Send();
?> This results in emails with the following headers Date: Sun, 24 Jul 2011 16:53:48 +0000
From: geonotes@geoloqi.com
Subject: You picked up a Geonote!
To: aaron@parecki.com Hope this helps! |
Weird ... OK, I dug some more and it appears that if I call your steps, the resulting email has a "To:" header in it. However, my messages (which don't follow quite the same code path) don't. If I call CreateHeader() and print out the header right before sending it, the To: is missing. So it's really hard to diagnose. What's the logic for actually getting the To: header put onto the final header when the message is sent? |
@danwood,
As @aaronpk suggested, |
I'm also experiencing this issue. As the linked forum page discusses, the 'Deliver-To' is being set, but 'To:' is not being set in the headers. This results in '(Undisclosed Recipients)' being in the To field of most email clients. Setting $singleTo = false seems to not be supported at the moment either?
|
I had the same problem. I solved it by editing AmazonSESMailer.php:55 from:
to
|
thanks @kalleboo your idea worked. |
See https://forums.aws.amazon.com/thread.jspa?messageID=262802񀊒 for a full background of the problem.
Essentially it seems like the 'SingleTo' field is not what I would expect it to be. When I create a message and send it (with SingleTo being on by default, the message header does not include the To: header. It seems like it ought to. And when I try forcing it off (maybe it does the opposite of what I expect it to?) then the message won't get sent at all.
Any ideas? Is this a bug, or am I misunderstanding things? How do I get a message sent via SES to include the To: header so that it properly shows up for the recipient?
The text was updated successfully, but these errors were encountered: