How to send email as HTML

Avatar
  • updated
  • Answered

Hi

I am hosting my account with inmotion hosting and have the following mail() function that does not work. Please help

// Email
$email_msg   = '';
$email_msg  .= "

";
$email_msg  .= "
Email was sent from: " . $URL . "
";
$email_msg  .= "";
//send email
mail($mailTo, $subject, $email_msg, "From:" . $email_address, "Content-Type: text/html; charset=ISO-8859-1");

The email will be received as text

Email was sent from: website[.]com

..........

Company Name:test company from website
Title:

Please advice what to do

Avatar
adelapuente
I recommend you to post this question at stackoverflow.com
Avatar
Arn

Hello,

Sorry that you're having problems with sending email from your web page. Unfortunately, providing coding help is beyond the scope of the Community Support forum. We can point you to articles, but actually providing coding services is not something we can do. Check out Using the PHP email function and Using FormMail. These are two methods that can provide a way for you to send email from your website.

Apologies that we can't use/modify your code. If you have any further questions or comments, please let us know.

Regards,

Arnel C.