Following function helps to send HTML formatted email using PHP <?php function htmlMail() { $to = "toemail@example.com"; $subject = "email subject"; $mail_body = '<html> <body bgcolor="#573A28" topmargin="25"> Your html content comes here Subject of the meail : ' . $subject . ' </body></html>'; $headers = "From: fromId@example.com\r\n"; $headers .= … Continue reading
↧