Best practice - sending html through a socket with PERL

They have: 3 posts

Joined: Nov 2005

Please can anyone tell me the best way to send html markup through an SMTP socket using PERL?
I have read the RFCs but the Americans don't make themselves abundantly clear!

Can I send html markup as 7bit data?

If not, can anyone help with an article/tutorial on how to send 8bit MIME data and what authentication will I need?

Peace from antares

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

What are you trying to do, in simple terms, send an email?

RFCs are rarely a good way to find out how to do practical things. If you explain what you need, we should be able to help. Smiling

a Padded Cell our articles site!

They have: 3 posts

Joined: Nov 2005

Thanks for your interest JeevesBond.

RFCs are a good place to start but when it comes to details they aren't as good as I want.

Yes, I'm trying to send HTML markup in an email.

Since my last post I have managed to get the MIME header to show up in the recipient mailbox but an abuse header has been added by the MTA which truncates the rest of my message and that's all I get - no subject, message etc, etc.

I am currently sending 7bit data.

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Well, personally, I'd look around the 'net for tutorials. This one on Perl email best practices looks good.

Are you aware of how to use CPAN? It's not difficult, and is probably the easiest way to get email handling in Perl. According to that tutorial MIME::Lite::TT::HTML looks like the easiest way to do what you need.

The only thing am unsure about is how to install CPAN modules without access to the command line. Confused

a Padded Cell our articles site!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.