Unix and Linux Discussions Tagged with smtp |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
2,955 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
4,547 |
Web Development |
|
|
|
2 |
8,255 |
Web Development |
|
|
|
3 |
6,738 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,717 |
Solaris |
|
|
|
7 |
5,175 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,606 |
AIX |
|
|
|
7 |
21,625 |
Shell Programming and Scripting |
|
|
|
5 |
15,473 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
2,469 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
10,330 |
Shell Programming and Scripting |
|
|
|
0 |
20,485 |
Shell Programming and Scripting |
|
|
|
2 |
10,124 |
Windows & DOS: Issues & Discussions |
|
|
|
0 |
883 |
Software Releases - RSS News |
|
|
|
4 |
7,236 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
990 |
Software Releases - RSS News |
|
|
|
0 |
1,137 |
Software Releases - RSS News |
|
|
|
0 |
885 |
Software Releases - RSS News |
|
|
|
1 |
19,405 |
Solaris |
|
|
|
0 |
860 |
Software Releases - RSS News |
|
|
|
2 |
3,308 |
UNIX and Linux Applications |
|
|
|
0 |
920 |
Software Releases - RSS News |
|
|
|
2 |
6,239 |
IP Networking |
|
|
|
0 |
811 |
Software Releases - RSS News |
|
|
|
0 |
914 |
Software Releases - RSS News |
|
|
|
0 |
873 |
Software Releases - RSS News |
|
|
|
0 |
1,726 |
Software Releases - RSS News |
|
|
|
0 |
758 |
Software Releases - RSS News |
|
|
|
0 |
883 |
Software Releases - RSS News |
|
|
|
0 |
1,034 |
Software Releases - RSS News |
|
|
|
0 |
1,012 |
Software Releases - RSS News |
|
|
|
1 |
4,066 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,137 |
Solaris |
|
|
|
3 |
12,435 |
SCO |
|
|
|
1 |
4,672 |
Programming |
|
|
|
1 |
4,309 |
Programming |
|
|
|
0 |
1,054 |
Software Releases - RSS News |
|
|
|
0 |
924 |
Software Releases - RSS News |
|
|
|
0 |
982 |
Software Releases - RSS News |
|
|
|
9 |
13,080 |
Cybersecurity |
Mail::SendEasy::SMTP(3pm) User Contributed Perl Documentation Mail::SendEasy::SMTP(3pm)
NAME
Mail::SendEasy::SMTP - Handles the communication with the SMTP server without dependencies.
DESCRIPTION
This module will handle the communication with the SMTP server. It hasn't dependencies and supports authentication.
USAGE
use 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 ;
METHODS
new ($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.
AUTHOR
Graciliano M. P. <gm@virtuasites.com.br>
COPYRIGHT
This 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)