Have a Snippet?

Keep, track and share your code snippets with your friends

PHP: Send an HTML formatted email Share on Vkontakte

Send an HTML formatted email. Supports all HTML formatting

$messagetext = 'Message body
with HTML formatting'; $mail_to = ''; $subject = 'My Subject'; $headers = "Content-type: text/html; charset=utf8 \r\n"; $headers .= "From: <>\r\n"; mail($mail_to, $subject, $messagetext, $headers);


Tag: PHP, mail, HTML

0 Comments