in reply to Net::SMTP - mass mail
Note that MIME::Lite can send email via Net::SMTP using the send_by_smtp method (from the pod):require MIME::Lite; $msg= MIME::Lite->new( From => $from_addr, To => $to_addr, Bcc => $bcc_list, Subject => $subject, Type => 'multipart/alternative', ); $msg->attach( Type => 'text/plain', Data => $some_plain_text, ); $msg->attach( Type => 'text/html', Data => $some_html, );
send_by_smtp ARGS... Instance method. Send message via SMTP, using Net::SMTP. The opt +ional ARGS are sent into Net::SMTP::new(): usually, these are MAILHOST, OPTION=>VALUE, ... Note that the list of recipients is taken from the "To", "Cc" and +"Bcc" fields. Returns true on success, false or exception on error.
# change the delivery method and then call vanilla instance method sen +d() MIME::Lite->send(’smtp’, "smtp.myisp.net", Timeout=>60); # ... $msg->send();
Can you provide any more information as to why you can only use Net::SMTP ?$msg->send(’smtp’, "smtp.myisp.net");
|
|---|