1

私の登録ページでは、メール コンテンツに以下のコーディングを使用しました。

$to =$email;

$subject = "Welcome to our site. Verify your Email address";

$body= "<table>

Dear $firstname $lastname,


Welcome to site name!

You have signed up for a new user account at JumpingEyes.  Please click the following activation link to complete your user registration process.

Your Email: $email

Activation Link:

<

$jeob->urlpath/activelink.php?status=1&mailid=$email

> 

Please Note: If you encounter any problems clicking on this link, please try typing it manually into your browser. Once you have been authenticated, you will have access to your account.

Sincerely,



site Team

*This is a system generated email - PLEASE DO NOT reply to this email*</table>";

$headers = 'From: usersupport@JumpingEyes.com' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail($to,$subject,$body,$headers);

        $display = "<div class='error'>Thank you for creating a new account with JumpingEyes.com.  A confirmation email has been sent to $email for you to activate your new account<br><span style='font-size:12px;font-weight:normal;'><a href='index.php'>Continue....</span></a></div>";

メールを受信した場合、次の出力が表示され、html タグは考慮されていません。table タグを削除すると、メールは送信されません。

また、私も使用$headers[] = "Content-type: text/plain; charset=iso-8859-1";しましたが、tat の後、メール機能が機能しません。誰でもこの問題を解決するのを手伝ってくれます。

<table>

Dear Nandhu D,

Welcome to site!

You have signed up for a new user account at JumpingEyes.  Please click the following activation link to complete your user registration process.

Your Email: rithikapsks@gmail.com

Activation Link:

<

http://domain.com//activelink.php?status=1&mailid=rithika@gmail.com

>

Please Note: If you encounter any problems clicking on this link, please try typing it manually into your browser. Once you have been authenticated, you will have access to your account.

Sincerely,

siteTeam

*This is a system generated email - PLEASE DO NOT reply to this email*</table>
4

1 に答える 1

2

ヘッダーを以下に置き換えてみてください。

$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: Mailer <mailer@example.com>' . "\r\n";
于 2013-01-08T12:50:11.620 に答える