
CGI::Bus::smtp - simple SMTP sender

use CGI::Bus; $s =CGI::Bus->new(); $s->smtp(-server=>'localhost')->mailsend(...);

This module is a simple SMTP sender. Uses Net::SMTP. See CGI::Bus::Base for inherited slots and methods.


Translates address given if needed. Removed backslashes, adds -domain...
Sends message, catenating rows via "\n". If 'from' or 'to' argument undefined, values are searched within rows of message as 'From:', 'Sender:', 'To:'. If array reference 'to' occurs in place of message row, it will be converted to 'To:' MIME string.
Creates and returns new Net::SMTP object


Andrew V Makarow <makarow at mail.com>