Gossamer Forum
Home : Products : Gossamer Links : Pre Sales :

contentype for emails

Quote Reply
contentype for emails
hello,

i want to change the newsletter/Mailinglist settings of content-type to html but i cant find any settings for this in the s cripts. Where can i change the code to insert a line like

print MAIL "Content-type:text/html\n";

Quote Reply
Re: contentype for emails In reply to
The mailer module isn't too robust. I think you can add a header by adding:

headers => 'Content-type: text/html',

into the new Links::Mailer part.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: contentype for emails In reply to
If you look at Mailer.pm, it does look for a passed tag "headers"

print $s $self->{'headers'}, $CRLF if $self->{'headers'};


It's the last line before the subject.

http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: contentype for emails In reply to
The mailer module isn't too robust. I think you can add a hi,

i try but nothing happens:) The html looks like html :(


header by adding:


headers => 'Content-type: text/html',

into the new Links::Mailer part.


Quote Reply
Re: contentype for emails In reply to
You need to check your mailer. Try it in several different ones.

Also, make sure you have proper HTML, some mailers choke if you don't.

I have the following two headers that worked when I was trying to get both NN and MSIE and Eudora to work with the messages:

Code:
Content-type: text/html
MIME-Version: 1.0
Looking at my current headers, the program is inserting:

Code:
MIME-Version: 1.0
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="hwemail.html"
Content-Base: http://www.postcards.com/perl/HamWeatherBeta
It seems that the common portion is the MIME-Version: 1.0

give that a try.... you can insert it in the one header by doing something like:

'MIME-Version: 1.0\nContent-Type: text/html; charset=us-ascii\n'

And pass that in the {'header'} string.




http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: contentype for emails In reply to
I had done some php3 work already and checked into the standards. The following must be included to meet standards...

Mime-Version: 1.0
Content-Type: text/html: charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Lance Rasmussen