Forum Moderators: coopster
Do to the fact it's getting there at all and it's not empty,...I assume it's an encoding issue or possibly multipart/boundary problems. (I am out of my realm of expertise)
Here are the two functions where I presume the trouble to be. Any help would be appreciated.
function build_message($part)
{
$message = $part["message"];
$message = chunk_split(base64_encode($message));
$encoding = "base64";
return "Content-Type: ".$part["ctype"].
($part["name"]?"; name = \"".$part["name"]."\"" : "").
"\nContent-Transfer-Encoding: $encoding\n\n$message\n";
}
function build_multipart()
{
$boundary = "b".md5(uniqid(time()));
$multipart = "Content-Type: multipart/mixed; boundary = $boundary\n\nThis is a MIME encoded message.\n\n--$boundary";
for($i = sizeof($this->parts)-1; $i >= 0; $i--)
{
$multipart .= "\n".$this->build_message($this->parts[$i])."--$boundary";
}
return $multipart.= "--\n";
}
--b5e72f3d6f93e9a52a892e1f8e343b4ec
Content-Type: text/plain
Content-Transfer-Encoding: base64
cmtldC5jb20gQWdlbnRzIGFuZCBNZW1iZXJzIHRvIHBsYWNlIHNvbWUgbmV3IGFkc
R29vZCBNb // 18-20 lines of this, I've cropped it // VHJhdmVsRm
VhbCBjYXRlZ29yeSB0aGF0IHlvdSBoYXZlIGNob3Nlbi4NCg0KDQpBcyBhb
--b5e72f3d6f93e9a52a892e1f8e343b4ec--
jatar_k if you wouldn't mind taking a peek, are you using base64 or 7bit?
It is possible that if you don't set it it may decide on its own. No idea, but it works fine when I don't set the encoding. Sorry I can't be more help.
first is that AOL is really odd with multipart MIME e-mails - so much so I gave up trying ages ago sending multiple attchments to AOL.
Second, if you're only sending plain text e-mails then can't you get rid of all that stuff that's putting in the MIME boundaries? - that's what's upsetting AOL.
'fraid you need someone with more PHP skill than me to tell you just HOW to simplify it.