> Hello, > > I'm looking at using the Net::SMTP module to send email as opposed to the > standard method of "sendmail". > > Been reading through the docs on the module, but not real clear on how to setup > the "To:", "From:", "Reply-to:", "Subject:". and other headers, and actual body > of the email to be sent, with this module.. was hoping someone maybe kind enough > to maybe post a sample of code, using this module. > > Any help much appreciated :) > > TIA,
Is there a specific reason why you chose Net::SMTP over the other simpler and higher level mail sending modules? Net::SMTP is designed to be low-level and talk directly to SMTP servers, which means its public interface isn't ideal for developing messages, especially complex ones. There are a number of other modules available on CPAN that can handle message building, and then sending (with Net::SMTP), with less of a learning curve and SMTP specific needs. http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>