Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

HTML in the subject line

the mail() function

Moderators: macek, egami, gesf

HTML in the subject line

Postby shawnwoodall08854 » Thu Sep 22, 2011 5:49 am

Hello All

I would like to do this: $subject = "Your Order Information From mycompany ™";
it comes up in the email subject like this: Your Order Information From mycompany ™
i have my headers variable set like this: $headers .= "Content-type: text/html\r\n";

Never had a situation come up like this before and i wanted to know if this was possible, to put html in the subject line, and have it show up as html and not just plain text

New php-forum User
New php-forum User
Posts: 1
Joined: Thu Sep 22, 2011 5:40 am

Re: HTML in the subject line

Postby bigjoe11a » Tue Sep 27, 2011 8:29 pm

Sorry, Shawn. as far as I know, The subject line has all ways been text, where the body of the message is HTML.
User avatar
New php-forum User
New php-forum User
Posts: 128
Joined: Wed Aug 31, 2011 3:55 am
Location: USA

Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.