tags:

views:

107

answers:

2

Hey,

I have been working with: http://www.sitepoint.com/article/advanced-email-php/6/ along with other articles on trying to get my email to be sent with an attachment and as of now:

It sends the email, with the plain text content, it looks like: http://pastie.org/569806

My code as of now is: http://pastie.org/569803 - I didnt want to paste the code here, its around 100 lines.

Any ideas on what I can do?

Thanks,

Ryan

+4  A: 

I would suggest using one of the many available wrappers for PHP's unwieldy mail function, such as:

...and many others, to avoid the headache of the low-level yuck, especially with regard to creating/manipulating/sending attachments.

karim79
+1  A: 

It doesn't seem to be picking up the mail headers. I see you started the headers on line 52 with a '\n' instead of a '\r\n' - does changing that help?

Al