html email - PHP variable and styling -


i have code here trying style php variable of $first css, isnt right, hence reason here.

i want style entire message , include logo, and/or background color, when email sent out it's "html email", know nothing php, guess i'm learning bit bit.

here code: ------->

$user = "$email"; $usersubject = "thank subscribing"; $userheaders = "from: subscriptions@3elementsreview.com\n"; $userheaders .= "content-type: text/html\r\n"; $usermessage = "welcome <span style='color:#ff6000; font-size:1.25em; font-    weight:bold;>$first</span>,  we're glad you've decided subscribe our email list!  there's lot of great things happening @ 3elements can't wait show you.  stay tuned notifications submission periods, issue release dates, contests, , other news. also, sure on facebook , follow on twitter!  sincerely,  3elements team   www.3elementsreview.com facebook.com/3elementsreview @3elementsreview";  mail($user,$usersubject,$usermessage,$userheaders); 

i'd start changing

<span style='color:#ff6000; font-size:1.25em; font-    weight:bold;> 

to

<span style='color:#ff6000; font-size:1.25em; font-weight:bold;'> 

i'd recommend heredoc large chunks of text, eg

$usermessage <<<eod  welcome <span style="color:#ff6000; font-size:1.25em; font-weight:bold;">$first</span>,  we're glad you've decided subscribe our email list!  there's lot of great things happening @ 3elements can't wait show you.  stay tuned notifications submission periods, issue release dates, contests, , other news. also, sure on facebook , follow on twitter!  sincerely,  3elements team   www.3elementsreview.com facebook.com/3elementsreview @3elementsreview eod; 

Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -