Hello and thanks for checking this out,
I am trying to send emails from my home made php script and would like to get rid of the cpanel headers and send them in html.
So far I can't get it too work.
Anyone sussefully do this or maybe know what to do for this?
Thanks again for any help.
-Charles
stephenM
05-04-2003, 10:13 PM
I don't think CPanel will allow you to remove the headers, it's a security feature AFAIK.
michaeln
05-05-2003, 12:06 AM
create a socket connection and talk to the mail server directly if you want to get rid of any headers sent by php.
To send an html email be sure to put this in the mail function like this:
mail("toaddress", "subject", "body", "From: From <from@email.com>\r\nContent-Type: text/html");
However keep in mind that you still will not be able to send pictures along with the email. You could however be sure the pictures are hosted on the internet and as long as they are online when they read the email the pictures should show up in the email.
If you would like to send the pictures with the email you would have to talk to the mail server directly as I said about. However on a brighter note someone has written a php class to do this for you.
The bad news is I don't remember who, or where to find it. Perhaps someone else around here knows.
-Michael