By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,642 Members | 1,674 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,642 IT Pros & Developers. It's quick & easy.

multiple custom headers in mail()

P: n/a
I want to use multiple custom headers in the mail() function. I know the
basic syntax is mail(recipient, subject, content, optional headers). How
would I use like say 3 headers? Also, what would the custom header be to
set the Content-Type to text/html (for some reason Content-Type: text/html
isn't working).

Thank you very much,
Justin Haygood
Xion Digital Networks (www.xiondigital.net)

--
Justin Haygood
All Mail and Newsgroups Posts Signed with GNU Privacy Guard to ensure
quality.
Proud User of the GNU/Linux distro MandrakeLinux 10.0 Community Edition
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi,

Justin Haygood wrote:
I want to use multiple custom headers in the mail() function. I know the
basic syntax is mail(recipient, subject, content, optional headers). How
would I use like say 3 headers? Also, what would the custom header be to
set the Content-Type to text/html (for some reason Content-Type: text/html
isn't working).


to add more headers divide them using "\r\n".
The header for sending HTML-Mails is
"Content-Type: text/html\r\nContent-Transfer-Encoding: 8bit\r\n"

Bye,
Alex
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.