Unix and Linux Discussions Tagged with smtp |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
3,156 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
5,254 |
Web Development |
|
|
|
2 |
9,016 |
Web Development |
|
|
|
3 |
7,821 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,886 |
Solaris |
|
|
|
7 |
5,722 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,685 |
AIX |
|
|
|
7 |
21,910 |
Shell Programming and Scripting |
|
|
|
5 |
15,852 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
2,719 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
10,455 |
Shell Programming and Scripting |
|
|
|
0 |
20,720 |
Shell Programming and Scripting |
|
|
|
2 |
10,335 |
Windows & DOS: Issues & Discussions |
|
|
|
0 |
1,124 |
Software Releases - RSS News |
|
|
|
4 |
7,443 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,202 |
Software Releases - RSS News |
|
|
|
0 |
1,301 |
Software Releases - RSS News |
|
|
|
0 |
1,024 |
Software Releases - RSS News |
|
|
|
1 |
19,805 |
Solaris |
|
|
|
0 |
895 |
Software Releases - RSS News |
|
|
|
2 |
3,379 |
UNIX and Linux Applications |
|
|
|
0 |
944 |
Software Releases - RSS News |
|
|
|
2 |
6,414 |
IP Networking |
|
|
|
0 |
886 |
Software Releases - RSS News |
|
|
|
0 |
1,003 |
Software Releases - RSS News |
|
|
|
0 |
929 |
Software Releases - RSS News |
|
|
|
0 |
1,807 |
Software Releases - RSS News |
|
|
|
0 |
823 |
Software Releases - RSS News |
|
|
|
0 |
1,025 |
Software Releases - RSS News |
|
|
|
0 |
1,102 |
Software Releases - RSS News |
|
|
|
0 |
1,196 |
Software Releases - RSS News |
|
|
|
1 |
4,223 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,298 |
Solaris |
|
|
|
3 |
12,748 |
SCO |
|
|
|
1 |
4,716 |
Programming |
|
|
|
1 |
4,430 |
Programming |
|
|
|
0 |
1,244 |
Software Releases - RSS News |
|
|
|
0 |
1,079 |
Software Releases - RSS News |
|
|
|
0 |
1,039 |
Software Releases - RSS News |
|
|
|
9 |
13,470 |
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)