in reply to Sending email with attachment
### Start with a simple text message: $msg = MIME::Lite->new( From => 'me@myhost.com', To => 'you@yourhost.com', Cc => 'some@other.com, some@more.com', Subject => 'A message with 2 parts...', Type => 'TEXT', Data => "Here's the GIF file you wanted", ); ### Attach a part... the make the message a multipart automatically: $msg->attach( Type => 'image/gif', Path => 'aaa000123.gif', Filename => 'logo.gif', ); ### Send in the "best" way (the default is to use "sendmail"): $msg->send;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Sending email with attachment
by jcoxen (Deacon) on Jun 14, 2005 at 21:06 UTC |