Page 1 of 1

PHP mail

Posted: Mon Feb 22, 2010 6:40 pm
by thomas
Hi,

I am having an issue sending mail with attachments. I have this piece of code that will go through the database and look for email that has not been sent. It will then query the database for from/to email, body, subject, and if it has any attachment. This piece of code will be used on both linux and windows server. It works fine on linux environment but does not work too well on window 2003 server. On Window server, it works fine if the email does not have an attachment but if it does, it'll send an email with just the subject. The body is empty and there is not attachment when it suppose to. I was wondering if anyone ever had this problem if there is a solution for it.

Thomas

Re: PHP mail

Posted: Mon Feb 22, 2010 8:13 pm
by Benjamin
You will need to identify the code causing the problem and post it here in order to receive assistance.

That said, I would opt to use Swiftmailer: http://swiftmailer.org/