Query: mail::sendeasy::smtp
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Mail::SendEasy::SMTP(3pm) User Contributed Perl Documentation Mail::SendEasy::SMTP(3pm)NAMEMail::SendEasy::SMTP - Handles the communication with the SMTP server without dependencies.DESCRIPTIONThis module will handle the communication with the SMTP server. It hasn't dependencies and supports authentication.USAGEuse Mail::SendEasy ; $smtp = Mail::SendEasy::SMTP->new( 'domain.foo' , 25 , 120 ) ; if ( !$smtp->auth ) { warn($smtp->last_response_line) ;} if ( $smtp->MAIL("FROM:<$mail{from}>") !~ /^2/ ) { warn($smtp->last_response_line) ;} if ( $smtp->RCPT("TO:<$to>") !~ /^2/ ) { warn($smtp->last_response_line) ;} if ( $smtp->RCPT("TO:<$to>") !~ /^2/ ) { warn($smtp->last_response_line) ;} if ( $smtp->DATA =~ /^3/ ) { $smtp->print("To: foo@foo") ; $smtp->print("Subject: test") ; $smtp->print(" ") ; $smtp->print("This is a sample MSG!") ; if ( $smtp->DATAEND !~ /^2/ ) { warn($smtp->last_response_line) ;} } $smtp->close ;METHODSnew ($host , $port , $timeout , $user , $pass) Create the SMTP object and connects to the server. connect Connect to the server. auth_types The authentication types supported by the SMTP server. auth($user , $pass) Does the authentication. print (data) Send data to the socket connection. cmd (CMD , @MORE) Send a command to the server. response Returns the code response. If wantarray returns an ARRAY with the response lines. last_response Returns an ARRAY with the response lines. last_response_msg The last response text. last_response_line The last response line (code and text). close QUIT and close the connection.AUTHORGraciliano M. P. <gm@virtuasites.com.br>COPYRIGHTThis program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.4 2004-04-09 Mail::SendEasy::SMTP(3pm)
Related Man Pages |
---|
smtp(n) - redhat |
calibre-smtp(1) - suse |
mail::mailer(3) - centos |
mail::mailer5.18(3) - mojave |
netsds::app::smtpd(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
recover smtp mail text files |
Brute force SMTP attack right now *help* |
AIX 6.1 SMTP Server ? |
Mail not working and probably never has |
Server has been compromised |