in reply to Mail::SendMail Content -type setting
Hi,
you can pass any SMTP headers as a key-value pair ( hash ) as given below, to Mail::Sendmail
If you want to send a mail with attachment, you can specify Content-Type as multipart/mime and boundary. You can also send headers like Content-Disposition, Content-Transfer-Encoding etc in the same way.use Mail::Sendmail; %mail = ( To => 'you@there.com', From => 'me@here.com', Content-Type => 'text/html' Message => "This is a very short message" ); sendmail(%mail) or die $Mail::Sendmail::error; print "OK. Log says:\n", $Mail::Sendmail::log;
Cheers !
--VC
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Mail::SendMail Content -type setting
by narainhere (Monk) on Aug 27, 2007 at 05:10 UTC | |
by andreas1234567 (Vicar) on Aug 27, 2007 at 07:56 UTC | |
by narainhere (Monk) on Aug 27, 2007 at 09:04 UTC |