Post new topic Reply to topic  [ 19 posts ] 
 Post subject: HTML email only shows code
PostPosted: 2009-09-16 (22:32) 

Joined: 2009-09-16 (22:20)
Posts: 4
Just dl'ed TAF and i love it so far great stuff here :D

I set TAF up to send html emails with no problem.
But I only have one issue: when i receive them i see the HTML code with no formatting. What am i missing?

Emails show up like this:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <title>Website recommendation by Tim Larson</title>
    <style type="text/css">
    <!--
      body {
          font-family:Arial, Helvetica, sans-serif;
          background-color:#A8DBEE;
          color:#00007F;
      }
    -->
   </style>
  </head>
  <body>
    <p>AAAAAAAAAAARG!</p>
    <p><a href="http://www.churchoftheking.com/">http://www.churchoftheking.com/</a></p>
    <p></p>
    <p></p>
    <p></p>
    <p></p>
    <p>-----------------------------------------</p>
    <p>This e-mail has been sent by Tim Larson (tlarson@churchoftheking.com).</p>
    <p>Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729)</p>
    <p>64.16.186.250 (nsc64.16.186-250.newsouth.net)</p>
    <p>2009-09-16 (14:24:32)</p>

  </body>
</html>


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2009-09-19 (22:05) 
Site Admin

Joined: 2003-07-27 (00:49)
Posts: 7357
Do you have these two lines in the mail header of your mail template?

Code:
Content-Type: text/html
Content-Transfer-Encoding: 8bit


Ralf


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2009-09-28 (20:10) 

Joined: 2009-09-16 (22:20)
Posts: 4
Yea, I sure do, Ralf. Here's what it looks like:

To: {friend_email}
From: {firstname} {lastname} <{sender_email}>
Subject: Website recommendation by {firstname} {lastname}
MIME-Version: 1.0
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
...etc


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2009-09-28 (20:17) 
Site Admin

Joined: 2003-07-27 (00:49)
Posts: 7357
Could you please post the link to your script.

Ralf


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2009-09-28 (20:34) 

Joined: 2009-09-16 (22:20)
Posts: 4
...[private code]

:D Thanks for the assist Ralf


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2009-10-01 (16:44) 
Site Admin

Joined: 2003-07-27 (00:49)
Posts: 7357
I've sent you an e-mail. :-)

Ralf


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2009-10-01 (17:18) 

Joined: 2009-09-16 (22:20)
Posts: 4
YYYYYYYYYYYYYEEEEEEEEEEEEAAAAAAAAAAAAAAAAAAA!
:lol:
Thank to so much Ralf! U save my @$$! U rock!


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2009-10-26 (15:05) 

Joined: 2009-10-26 (09:09)
Posts: 1
Hi guys,
I'm getting the same error. How did you solve this issue? :(
my page link is:

Code:
http://www.anodomino.com/nwc


Thanks

Regards,
Andre


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2010-01-11 (23:50) 

Joined: 2010-01-11 (23:44)
Posts: 3
I've got the html email showing only the HTML code problem - does anyone know what causes this and how to resolve it?

I've tried changing the Content-Type and Content-Transfer-Encoding but can't get anything to work.

It seems that other people have run into this problem and fixed it, but how they did this hasn't been posted.

Any help appreciated!

Alan


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2010-01-19 (23:11) 
Site Admin

Joined: 2003-07-27 (00:49)
Posts: 7357
Could you please post the content of your mail template as well as the URL of the script?

Best regards

Ralf


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2010-01-20 (00:16) 

Joined: 2010-01-11 (23:44)
Posts: 3
Ralf,

I haven't changed the default HTML template, which is as follows:

To: {friend_email}
From: {firstname} {lastname} <{sender_email}>
Subject: Website recommendation by {firstname} {lastname}
Content-Type: text/html
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Website recommendation by {firstname} {lastname}</title>
<style type="text/css">
<!--
body {
font-family:Arial, Helvetica, sans-serif;
background-color:#A8DBEE;
color:#00007F;
}
-->
</style>
</head>
<body>
<p>{comment}</p>
<p><a href="{url}">{url}</a></p>
<p>{checkbox:newsletter}</p>
<p>{checkbox:information}</p>
<p>{radiobutton:salutation}</p>
<p>{select:Vote}</p>
<p>-----------------------------------------</p>
<p>This e-mail has been sent by {firstname} {lastname} ({sender_email}).</p>
<p>{env_user_agent}</p>
<p>{env_remote_address} ({env_remote_host})</p>
<p>{env_year}-{env_month}-{env_day} ({env_hour}:{env_minute}:{env_second})</p>

</body>
</html>

I'm trying this out on some test web space at the moment at http://dd.oakridgeinternet.co.uk/index.php.

Thanks for any help you can offer,

Alan


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2010-01-26 (23:01) 
Site Admin

Joined: 2003-07-27 (00:49)
Posts: 7357
Which version of the script are you using? The latest version (2.9.1) should be able to handle this.

Ralf


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2010-01-29 (11:08) 

Joined: 2010-01-11 (23:44)
Posts: 3
Ralf,

I appear to be using the 2.9 version - how would I tell if I was using 2.9.1?

The download available from the web site delivers 2.9, though the comments in index.php say "Version......: 0.4".

Thanks,

Alan


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2010-01-29 (23:21) 
Site Admin

Joined: 2003-07-27 (00:49)
Posts: 7357
Version 2.9 and 2.9.1 are virtually the same. Doesn't matter.

The HTML mail should work as long as the line Content-Type: text/html is in the template.For some reason it gets lost because in the mail header of the e-mail I received that line is gone.

Ralf


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2010-02-21 (21:31) 

Joined: 2010-02-21 (19:32)
Posts: 2
Ralf wrote:
Version 2.9 and 2.9.1 are virtually the same. Doesn't matter.

The HTML mail should work as long as the line Content-Type: text/html is in the template.For some reason it gets lost because in the mail header of the e-mail I received that line is gone.

Ralf


I have the same problem. Can I get the fix you gave to tlarson?
Called from here - http://londonhomeandgardenshow.com/media.html
Template - http://londonhomeandgardenshow.com/taf/templates/html_mail.tpl.txt


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2010-03-10 (14:06) 
Site Admin

Joined: 2003-07-27 (00:49)
Posts: 7357
Sorry for the late reply. I'm afraid, I don't have an answer. By rights the script should send HTML e-mails. It does in my tests.

The fix that has been mentioned here doesn't apply here because it's already part of script.

Ralf


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2010-03-29 (21:35) 

Joined: 2010-03-29 (21:28)
Posts: 2
Hi Ralf,

i have the same problem, but only with some of the e-mail clients (Lotus Notes e.g.), but i don't know what can be the problem with my code..
this is in the top:

$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'From: test@test.com' . "\r\n";
$headers .= 'Content-type: text/html; charset=ISO-8859-2' . "\r\n";
$headers .= 'Content-Transfer-Encoding: 8bit' . "\r\n";

$to = $clientemail;
$subject = "something... ";

thanks for the help in advance!


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2010-03-29 (22:39) 
Site Admin

Joined: 2003-07-27 (00:49)
Posts: 7357
Are you using our Form Mail Script?

Ralf


Top
 Profile  
 
 Post subject: Re: HTML email only shows code
PostPosted: 2010-03-30 (15:59) 

Joined: 2010-03-29 (21:28)
Posts: 2
Hi,

no, but it was solved after i have posted this message:) thanks for reading!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ] 


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
cron

Resources:   Schwerin    Private Krankenversicherung    Krankenversicherung    Website Tools Collection    Speed Camera Database    Radarfallen-Datenbank    Speed Camera Database    Teeny Weeny URL
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Translated by Xaphos © 2007, 2008, 2009 phpBB.fr