Ich habe eine VPS mit Inmotion-Hosting, und ich sende eine Bestätigungs-E-Mail, aber die E-Mail braucht zu viel zu senden, wie ist der beste Weg, um den HTML-Code zu strukturieren, wenn ich eine E-Mail senden, wie Kann ich die Leistung steigern?PHP-Mail senden sehr langsam
Dies ist mein Code.
$subject = 'Mail activation';
$body = '
<html>
<head>
<base target="_blank">
</head>
<body>
<table style="max-width:800px; margin:0 auto; font-family: Arial, Helvetica, sans-serif;" cellspacing="0" cellpadding="10">
<thead style="border-bottom:1px solid #DDD;">
<tr>
<td align="center" style="border-bottom:1px solid #DDD;">
<img src="http://p.unid.com/img/logoSASENegro.png" alt="" height="45" width="150"/>
</td>
</tr>
</thead>
<tbody>
<tr>
<td>
Hi classmate
</td>
</tr>
<tr>
<td>
Press the following link.
</td>
</tr>
<tr>
<td>
www.google.com
</td>
</tr>
<tr>
<td>
You data:
</td>
</tr>
<tr>
<td>
ID - <b>'.$ids.'</b><br/>
Password - <b>'.$pass.'</b><br/>
</td>
</tr>
<tr>
<td>
Don't response this email.
</td>
</tr>
</tbody>
</table>
</body>
</html>
';
$headers = "MIME-Version: 1.0\r\n";
$headers .="Content-type: text/html; charset=utf-8\r\n";
$headers .= "From: Contacto SASE <[email protected]>\r\n";
if(mail($emailC, $subject, $body, $headers))
Ihre Syntax ist fehlerhaft. Sehen Sie sich an: "Antworten Sie nicht auf diese E-Mail". Ihre Zeichenfolge endet dort. – Joshua
Leistung bezieht sich auf das Server/MTA-Setup, nicht auf den Code. (→ Off-Thema). Stellen Sie sich eine Mailklasse und ein richtiges SMTP-Relay vor. – mario