How can I get the content of the message that will be sent? I do not want to actually SEND it, but I want to get all the headers, the message parts, etc... (to run through a spam filter).
How do I GET the email without actually SENDING it?
Get body?
Moderators: Chris Corbyn, General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Get body?
Kaitlyn2004 wrote:How can I get the content of the message that will be sent? I do not want to actually SEND it, but I want to get all the headers, the message parts, etc... (to run through a spam filter).
How do I GET the email without actually SENDING it?
Code: Select all
$stream =& $message->build();
echo $stream->readFull();-
Kaitlyn2004
- Forum Newbie
- Posts: 15
- Joined: Wed May 30, 2007 7:46 am
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
It doesKaitlyn2004 wrote:Oh right! duh! hha
And that builds the entire message, including multipart and attachments, embedded images, etc? (assuming each part is actually set)