Jump to content

Recommended Posts

I have a fellow website owner running the same script as me...

 

the script sends html emails

 

when he recently switched servers the email html is coming through in code to the recipients email

 

it actually shows the code instead of showing the result of the html...

 

what would be different on the new server that would cause this??

 

I told him to ask the host about the outgoing email handler.. and they say its in the script

 

well the script hasnt changed and now it does not work on the new server..

 

does anyone know about a setting on the server or configuration that would cause the emails to show the html code instead of displaying the result of the html code???

 

any help on this is greatly appreciated

 

<html>

<head>

<title>Emarital.com</title>

<link rel=3D"stylesheet" =
href=3D"http://emarital.com/style.css" =
type=3D"text/css">

</head>

<body>

<table width=3D"100%" cellpadding=3D"3">

<tr><td>

<img src=3D"http://emarital.com/images/en/logo.gif">

</td></tr>

<tr><td>

User: sandman4971 has created/modified his/her profile.

You can view it in your <a =
href=3D"http://emarital.com//smartway/index.php"></a>.=


</td></tr>

</table>

</body>

</html>_____________________

 

this would display the result of the code if sent from my site or his old server

 

Paul

Link to comment
https://forums.phpfreaks.com/topic/88817-php-sending-html-code-in-emails/
Share on other sites

The actual HTML isn't going to effect the output. I think what the host was talking about is the script that is sending the email. Sending email from your shared hosting account can be easy, and sometimes not so easy. I recently had an issue where the host reinstalled PEAR and I lost my packages, and my email stopped working. I finally figured out that I wasn't receiving emails, and got back to them, but lost about a week's worth of email due to the situation.

 

You need to look in to the actual php script that is sending the email, and post that actual code here.

Guys thanks for all the input...

 

but the code works

 

it works on many servers

 

so I need to find out whats wrong with the mailer scrypt...

 

and why cant the host figure this out.. he has a dedicated server with support from the host...

 

the script sends html fine on many other servers.... how can I check the mailer scrypt settings on his server?

 

I have access to cpanel and ftp....

 

they pretty much blew him off saying it is in a scrypt.. how could we reword a request to check mailer scrypt settings ?

 

Paul

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.