a email html code example
Example 1: html mailto
<a href="mailto:[email protected]">Link text</a>
Example 2: email link html
<a href = "mailto: [email protected]">Send Email</a>
Example 3: how to link to an email in html
<a href = "mailto: [email protected]">Send Email</a>
Example 4: html email links
<a href="mailto:[email protected]"> Email_id </a>
Example 5: html5 mail link
4<a href="mailto:[email protected]?subject=Feedback">
Example 6: html email
$mailtext = '<html>
<head>
<title>HTML-E-Mail mit PHP erstellen</title>
</head>
<body>
...
</body>
</html>
';
$empfaenger = "[email protected]"; // Mailadresse
$absender = "[email protected]";
$betreff = "Mail-Test - HTML-E-Mail mit PHP erstellen";
$antwortan = "[email protected]";
$header = "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/html; charset=utf-8\r\n";
$header .= "From: $absender\r\n";
$header .= "Reply-To: $antwortan\r\n";
// $header .= "Cc: $cc\r\n"; // falls an CC gesendet werden soll
$header .= "X-Mailer: PHP ". phpversion();
mail( $empfaenger,
$betreff,
$mailtext,
$header);
echo "Mail wurde gesendet!";