Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

RE: Background Process

by httptech (Chaplain)
on Jun 26, 2000 at 01:33 UTC ( [id://19770]=note: print w/replies, xml ) Need Help??


in reply to Background Process

An easy (non-perl) way to do this if you are using sendmail is to pass the -odq option to sendmail. This causes sendmail to queue the mail for sending later, instead of sending it immediately. Of course, you don't get fine-grained control over how long the delay is. Sendmail will process it at the next queue run interval, which is set in the sendmail.cf file.

If you wanted to clean the queue out every few minutes instead of waiting for sendmail to do it, you could always set up a cron job to run "sendmail -qSfoo@bar.com" where foo@bar.com is the "From" address on your email.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://19770]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (1)
As of 2024-05-23 11:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found