Package DE_EPAGES::MailType::API::Object::SmtpConnection
object interface for an SMTP Connection.
Base |
DE_EPAGES::Mail::API::SMTP |
Example |
my $Smtp = DE_EPAGES::MailType::API::Object::SmtpConnection->new; $Smtp->connection( sub { $Smtp->send( "This is a test", { 'FROM' => 'Sender <mailer@epages.de>', 'TO' => ['Recipient <rcpt@epages.de>'], 'SUBJECT' => 'Hallo', } ); }); |
Functions
close
obsolete. Use connection() instead.
Syntax |
$Connection->close(); |
new
Creates a new SmtpConnection object using the SMTP server that is configured by the attributes SMTPServer and SMTPPort of the System object.
Syntax |
$Connection = DE_EPAGES::MailType::API::Object::SmtpConnection->new(); |
Return |
|
open
obsolete. Use connection() instead.
Syntax |
$Connection->open(); |
send
Send the e-mail using the SMPT connection
Syntax |
$Connection->send( $MailBody, $hParams ); |
Example |
$Connection->send( $Mail->createMail(), $Mail->getHeader()); |
Input |
|