I hope I didn't miss the answer to this, but did anyone ever figure out how to get the php code to send the message along with the attachment to someone using yahoo mail or gmail? I can't to seem get it to work. I know some people asked about it but I never saw any solutions. Please help...
I was having the same problems and what I did was to make the headers match how gmail sends them and it worked like a charm.
So I sent and simple plain text email with an attachment to myself using gmail and then viewed the headers and coded the php to match how gmail sends it.
Comments
UM, I was thinking of this:
$headers .= "
=MIME_BOUNDRY_main_message \n";
UM, see this, UM, RFC: http://tools.ietf.org/html/rfc2046#section-5.1.1
Ok, that gave me the echo of
"file uploadedMail sent. Thank you for using the MyNewName5333 Mailer."
So I guess the uploading part is working.
But now I do not get an email at all. I'm guessing because it's no longer doing the 'chunk_split'.
So where to go from here?
I was having the same problems and what I did was to make the headers match how gmail sends them and it worked like a charm.
So I sent and simple plain text email with an attachment to myself using gmail and then viewed the headers and coded the php to match how gmail sends it.
Tested it, and it worked.
Just thought I'd shared what I did.