Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Sendmail & HTML

by projekt21 (Friar)
on Oct 08, 2001 at 17:29 UTC ( [id://117445]=note: print w/replies, xml ) Need Help??


in reply to Sendmail & HTML

if not using one of those excellent MIME::* modules you could do something like the following to set a correct content-type for your mail:

my $mailfrom = 'someone@somewhere.com'; my $mailcommand = "/usr/lib/sendmail -f\"$mailfrom\" -O\"NoRecipientAc +tion=add-to\" -t "; my $to = '...' # recipient goes here open MAIL, "| $mailcommand $to" or die "$0: Cannot execute command: $! +\n"; print MAIL <<EOT; To: $to MIME-Version: 1.0 Content-Type: text/html Content-Transfer-Encoding: 8Bit Subject: Some subject here ... your text ... EOT close MAIL;

The relevant thing is that "Content-Type" line, give it a try...

alex pleiner <alex@zeitform.de>
zeitform Internet Dienste

Replies are listed 'Best First'.
Re: Re: Sendmail & HTML
by Anonymous Monk on Jan 19, 2003 at 21:54 UTC
    works Great!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://117445]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-04-24 20:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found