PHP mail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
thomas
Forum Newbie
Posts: 6
Joined: Wed May 21, 2008 3:18 pm

PHP mail

Post 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
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: PHP mail

Post 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/
Post Reply