Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Sending mail from perl script

by sabari (Beadle)
on May 07, 2010 at 07:15 UTC ( #838870=note: print w/replies, xml ) Need Help??


in reply to Re: Sending mail from perl script
in thread Sending mail from perl script

Normal Net::Telnet and below Commands can help you post a mail without any other modules . smtp protocol command : http://the-welters.com/professional/smtp.html Testing I did is , put the telnet to my mail server SMTP port Connected to mail.bksys.co.in Escape character is '^]'. 220 mail.bksys.co.in ESMTP Postfix (Debian/GNU) HELO localhost 250 mail.bksys.co.in MAIL FROM:sabarinathan@bksys.co.in 250 2.1.0 Ok RCPT To:sabarinathan@bksys.co.in 250 2.1.5 Ok DATA 354 End data with <CR><LF>.<CR><LF> This is test mail by Telnet via SMTP . 250 2.0.0 Ok: queued as EC1BD1DC002 VRFY sabarinathan@bksys.co.in 252 2.0.0 sabarinathan@bksys.co.in
Best Regards, S.Sabarinathan,

Replies are listed 'Best First'.
Re^3: Sending mail from perl script
by sabari (Beadle) on May 07, 2010 at 07:23 UTC
    Normal Net::Telnet and below Commands can help you post a mail without any other modules .
    smtp protocol command :
    
    http://the-welters.com/professional/smtp.html
    
    Testing I did is ,
    
    put the telnet to my mail server SMTP port
    
    Connected to mail.bksys.co.in
    Escape character is '^]'.
    220 mail.bksys.co.in ESMTP Postfix (Debian/GNU)
    HELO localhost
    250 mail.bksys.co.in
    MAIL FROM:sabarinathan@bksys.co.in
    250 2.1.0 Ok
    RCPT To:sabarinathan@bksys.co.in
    250 2.1.5 Ok
    DATA
    354 End data with <CR><LF>.<CR><LF>
    This is test mail by Telnet via SMTP
    .
    250 2.0.0 Ok: queued as EC1BD1DC002
    VRFY sabarinathan@bksys.co.in
    252 2.0.0 sabarinathan@bksys.co.in
    
    
    
    Best Regards, S.Sabarinathan,

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://838870]
help
Chatterbox?
LanX YT auto-caption: "The Uk sends a breakfast negotiator to brothels"
[tye]: cool. For some reason I couldn't remember it nor come up with a good search strategy (other than crowd sourcing).
[davido]: hm, that seems to also survive $< manipulations @corion so good call.
[Corion]: tye: I also more randomly stumbled over it, as "who am i" unix implementation didn't really provide much help. But Wikipedia linked me to the List of Unix Programs (or something like it), and from there ...
[talexb]: Wasn't Brexit the name of the first Santana album?
[tye]: That's funny, saying getlogin() is less secure. For some uses, it is far superior to getpwuid(), precisely for reasons of security.
[LanX]: search strategy => Perl Functions by Category
[Corion]: ... I found discussion of the who utility and that it uses the POSIX 2008 getlogin function (but that function was available much earlier and thus even exists in Perl, as a search for getlogin on CPAN brought up Perl 5.26 as first hit
[tye]: oh, LanX, but I was thinking that it was not a function that Perl provided.
[Corion]: Yeah, I also went a more roundabout way, just to find that the solution had been with Perl all along! ;)

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2017-06-23 18:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (554 votes). Check out past polls.