Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > How do i send email as HTML format using Net::SMTP_auth

Reply
Thread Tools

How do i send email as HTML format using Net::SMTP_auth

 
 
arun
Guest
Posts: n/a
 
      03-23-2005
Hi
How do i send HTML Mail using Perl Module Net::SMTP_auth. Right now i
can able to send the mail but the receipents are able to view all the
HTML tags. How to resolve this.

With Regards
Arun

 
Reply With Quote
 
 
 
 
Gregory Toomey
Guest
Posts: n/a
 
      03-23-2005
arun wrote:

> Hi
> How do i send HTML Mail using Perl Module Net::SMTP_auth. Right now i
> can able to send the mail but the receipents are able to view all the
> HTML tags.

What, they can view <img> but not <b> ???

> How to resolve this.

No idea.
> With Regards
> Arun


You could try MIME::Lite.
http://www.gregorytoomey.com/index.p...id=8&Itemid=28

gtoomey
 
Reply With Quote
 
 
 
 
Mike
Guest
Posts: n/a
 
      03-23-2005
Arun,

I use MIME::Lite to form the email body before sending.
Here $pagetosend is the whole html page.

-------code snip--------
use MIME::Lite;

### Create the multipart container
my $msg = MIME::Lite->new (
From => $from_address,
To => $to_address,
Subject => $subject,
Type => 'text/html',
Data=> $pagetosend
) or die "Error creating inline email $!\n";
## prep msg for Net:SMTP
my $msg_body = $msg ->as_string();

---- end snip-----
Now you have an encapsulated html page to insert.

so now just

---- snip 2-----
$smtp->data();
$smtp->datasend($msg_body);
$smtp->dataend();
$smtp->quit();
---- end snip 2 -----

Now this has been working for me for a long time using Net::SMTP.

Hope it helps,

Mike

"arun" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed) oups.com>...
> Hi
> How do i send HTML Mail using Perl Module Net::SMTP_auth. Right now i
> can able to send the mail but the receipents are able to view all the
> HTML tags. How to resolve this.
>
> With Regards
> Arun

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
send email having some fields on the form using only html andjavascript anybody knows shailendra deshpande Javascript 4 06-16-2008 09:29 PM
how to get the correct email format when sending email using sqldatareader rote ASP .Net 8 04-17-2008 02:14 AM
Using an HTML object to send Email Vince HTML 4 08-01-2007 04:53 AM
send an email with picture/rich text format in the body anya Python 16 05-29-2006 09:48 PM



Advertisments