Hi,
I had my website re-designed recently. The folks who did it did not do a great job. I have some knowledge of html code, but I am not an expert. Here is my problem.
On my website I have a newsletter function. I can create a newsletter using the admin section of my site. The newsletter is created using the FCKEditor, the editor works great. The only problem I am having is that when I send out the newsletter, the source code is displayed along with the contents. I want to display the contents without the source code. Here is an example of what I mean:
The editor sends a newsletter to the subscriber that looks like this:
<P><Font="arial" color="fff000" size="3">Thank you for subscribing to my newletter.</P>
<br>
etc.
It should like this:
Thank you for subscribing to my newsletter.
How do I fix this? I can get into the source code. The newsletter function is a php page. All I need to know is what I need to change in the code to eliminate the html source from being displayed in conjunction with the message in the newsletter.
Thank you for your time.
I had my website re-designed recently. The folks who did it did not do a great job. I have some knowledge of html code, but I am not an expert. Here is my problem.
On my website I have a newsletter function. I can create a newsletter using the admin section of my site. The newsletter is created using the FCKEditor, the editor works great. The only problem I am having is that when I send out the newsletter, the source code is displayed along with the contents. I want to display the contents without the source code. Here is an example of what I mean:
The editor sends a newsletter to the subscriber that looks like this:
<P><Font="arial" color="fff000" size="3">Thank you for subscribing to my newletter.</P>
<br>
etc.
It should like this:
Thank you for subscribing to my newsletter.
How do I fix this? I can get into the source code. The newsletter function is a php page. All I need to know is what I need to change in the code to eliminate the html source from being displayed in conjunction with the message in the newsletter.
Thank you for your time.
RE: Editor
RE: Editor
Kae thanks for your reply. I had a feeling it was something with the code on the actual email message. The problem is I can't find the location of the code you indicated. I think perhaps this may be hidden somewhere with a different or alternate code. If you notice where the value of what I typed into the editor is, the code surrounding it is odd, just doesn't look right. I think that is where the problem may be. Like I said, I am NOT an expert in this. Here is a copy of the code on each of the pages where the code resides:
Newsletter admin page, this is what the page looks like before I enter my message into the editor:
<link href="../css/style.css" rel="stylesheet" type="text/css">
<link href="../../css/style.css" rel="stylesheet" type="text/css" />
This is the resulting source code after I enter my message via the FCK Editor:
<link href="../css/style.css" rel="stylesheet" type="text/css">
<link href="../../css/style.css" rel="stylesheet" type="text/css" />
I am unable to get any code for the page subsequent to this, once I hit enter on this page, the message is marked to be sent. There is no page after this one.
RE: Editor
this problem occurs when the Content-type has not been sent with the email.
in PHP, an email is sent something like this:
mail('kae@verens.com','subject','<strong>bold text</strong>','Content-type: text/html');
I think you're missing the bit at the end.