Gossamer Forum
Home : General : Perl Programming :

Aol Complex HTML

Quote Reply
Aol Complex HTML
When I send e-mail using Sendmail I can make it HTML by adding a Code

Code:
print "Content type: text/html\n\n";


in the mail properties.

But AOL does not like this and will not display any complex html like Tables etc.... Is there a way to send mail to AOL members in HTML?
Quote Reply
Re: [ZimZangZoom] Aol Complex HTML In reply to
Hi,

Have you format your messages before sending by some functions like this?

sub encode_qp
{
my $res = @_[0];
$res =~ s/([^ \t\n!-<>-~])/sprintf("=%02X", ord($1))/eg; # rule #2,#3
$res =~ s/([ \t]+)$/
join('', map { sprintf("=%02X", ord($_)) }
split('', $1)
)/egm; # rule #3 (encode whitespace at eol)

# rule #5 (lines must be shorter than 76 chars, but we are not allowed
# to break =XX escapes. This makes things complicated :-( )
my $brokenlines = "";
$brokenlines .= "$1=\n"
while $res =~ s/(.*?^[^\n]{73} (?:
[^=\n]{2} (?! [^=\n]{0,1} $) # 75 not followed by .?\n
|[^=\n] (?! [^=\n]{0,2} $) # 74 not followed by .?.?\n
| (?! [^=\n]{0,3} $) # 73 not followed by .?.?.?\n
))//xsm;

return "$brokenlines$res";
}

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Aol Complex HTML In reply to
So i have to format the message like that for AOL only and HTML tags will work in AOL's email client ?
Quote Reply
Re: [ZimZangZoom] Aol Complex HTML In reply to
Hi,

This function for html email. I am not sure it will work fine for aol please have a try.

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [ZimZangZoom] Aol Complex HTML In reply to
Normally you can only send plain text, with a little HTML (i.e. <a href> tags), I prefer to just offer an option (i.e. HTML or text), and then they can change how they get it sent if it doesn't appaer right. Another option would be to send it in plain text, and then offer a link to an online copy of it, where displaying HTML would be no problem ;)

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [ZimZangZoom] Aol Complex HTML In reply to
AOL can't display HTML email so whenever you send HTML mail to AOL members it will come through as garble.

It's best to create two emails; one plain text, and one HTML.

You can actually send both in one message, or have an option to the user when he or she signs up for your email list.

- wil
Quote Reply
Re: [Wil] Aol Complex HTML In reply to
Like I just said Wink
Quote Reply
Re: [AndyNewby] Aol Complex HTML In reply to
Yep. And here's a link to an article that discusses this and proposes a few options.

http://ezine-tips.com/...ormat/20001003.shtml

And another one (probably a bit better than the above, actually):

http://www.netmechanic.com/.../vol4/promo_no24.htm

- wil

Last edited by:

Wil: Mar 7, 2002, 4:21 AM
Quote Reply
Re: [Wil] Aol Complex HTML In reply to
>>
AOL can't display HTML email so whenever you send HTML mail to AOL members it will come through as garble.
<<

Hmm not sure. I always receive spam to my aol account that is full of html and it displays properly.
Quote Reply
Re: [RedRum] Aol Complex HTML In reply to
Hm. The articles in the links I gave say that AOL mail only supports a few tags.

- wil