forumuser has asked for the wisdom of the Perl Monks concerning the following question:
Its almost like the call is blocking until my mail server does a 'send/receive', although I am not sure. Any other examples of how I can simply call the sendmail (or other, maybe mail or mailx) in a non-blocking way such that I can send a few emails from my quick script and not have it take minutes. Again please no CMAP modules I cannot get them. Thanks.open(MAIL, "|/usr/sbin/sendmail -t"); ## Mail Header print MAIL "To: $to\n"; print MAIL "From: $from\n"; print MAIL "Subject: $subject\n\n"; ## Mail Body print MAIL "write your mail body text here\n"; close(MAIL);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Send mail w(non blocking) default package
by Corion (Patriarch) on Jul 24, 2012 at 06:55 UTC | |
|
Re: Send mail w(non blocking) default package
by aitap (Curate) on Jul 24, 2012 at 07:22 UTC |