Punto has asked for the wisdom of the Perl Monks concerning the following question:
I need to sendn a mail from a perl script. I'm using MIME::Entity to create the e-mail, so I have a string like this to print out to sendmail:
To: somebody@domain.com
From: me@domain.com
etc
But I want to use the script on a system that doesn't have sendmail, or maybe use a different SMTP server, other than localhost. I need to use MIME::Entity because I'm sending attachments. What would be another way to send the e-mails? I say Mail::Sendmail and Net::SMTP, but they all have commands like this:
or something, but I alredy have all the mail on a string. Any ideas?$mail = {To => 'somebody@domain.com', From => 'me@domain.com', etc
thanks..
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SMTP client.
by lhoward (Vicar) on Jun 26, 2000 at 16:33 UTC | |
|
Re: SMTP client.
by httptech (Chaplain) on Jun 26, 2000 at 16:43 UTC | |
|
Re: SMTP client.
by ZZamboni (Curate) on Jun 26, 2000 at 19:20 UTC | |
|
Re: SMTP client.
by Anonymous Monk on Jun 27, 2000 at 22:52 UTC |