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!
Hi I have set up a license selling website, it works with paypal IPN, everything works well except the mail function, where could be the problem please?
here is the code in brief:
I don't get any error messages. actually before getting to these lines all the $_post data including $payer_email are stored in the database and everything works well, sending email is the last step.
It could be a problem with the headers, try the example above and remove the 'To' header aswell. Also, modify the 'To' header to only include the email address.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Instead of writing a new mail class or function you can use phpmailer or swiftmail libraries.
Main issue arises when you send the mail successfully and it gets marked as spam. So these libraries can be helpful for many purposes. You can send attachments, different content types, using external smtp's for sending mails.
But if you want to use your own, it has to be able to tackle the spam filters.
Last edited by phazorRise on Sun Jul 31, 2011 1:49 pm, edited 1 time in total.