$first の PHP 変数を css でスタイルしようとしているコードがいくつかありますが、明らかに何かが正しくないため、ここにいます。
最終的には、このメッセージ全体のスタイルを設定し、ロゴや背景色を含めて、このメールが送信されたときに「html メール」になるようにしたいのですが、PHP については何も知りません。少しずつ学んでいると思います。 .
ここに私のコードがあります: ------->
$user = "$email";
$usersubject = "Thank you for 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 to subscribe to our email list!
There's a lot of great things happening at 3Elements that we can't wait to show you.
So stay tuned for notifications about submission periods, issue release dates, contests, and other news. Also, be sure to like us on Facebook and follow us on Twitter!
Sincerely,
The 3Elements Team
www.3ElementsReview.com
Facebook.com/3elementsreview
@3ElementsReview";
mail($user,$usersubject,$usermessage,$userheaders);