InMotion Hosting Support Center

How to send email as HTML


InMotionFans
n/a Points
Asked:
2015-04-24 10:34 am EST

Hits: 215
Hi
I am hosting my account with inmotion hosting and have the following mail() function that does not work. Please help
// Email
$email_msg = '<html><body>';
$email_msg .= "<a href=\"http://" . $URL . "/\">" . "<img src=http://" . $URL . "/images/logo.png " . "width=\"219\" height=\"71\"></a>";
$email_msg .= "<p>Email was sent from: " . $URL . "</p>";
.
.
$email_msg .= "</table></body></html>";

//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
<html><body><a href="http://website.com/"><p>Email was sent from: website.com</p><table width="560" border="0" cellspacing="0" cellpadding="0"><tr><td width="160">Company Name :</td><td <td width="400">test company from website</td></tr><tr><td width="160">Title :</td>..........</table></body></html>

Please advice what to do

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

Arn
Staff
40,336 Points
2015-04-24 10:44 am EST




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.

You must login before you can post a comment about this answer.

0

adelapuente
2015-04-24 12:47 pm EST
I recommend you to post this question at stackoverflow.com

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Social Media Login

   
Social Login Joomla

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!