![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sendmail mail server help | rcmrulzz | SUN Solaris | 9 | 05-02-2008 10:22 AM |
| need solution for this quickly. please quickly. | p.palakj.shah | UNIX for Dummies Questions & Answers | 5 | 04-17-2008 03:27 AM |
| Forwarding mail with sendmail | annececile | UNIX for Advanced & Expert Users | 2 | 01-24-2002 03:48 AM |
| Sendmail - forwarding mail | warrend | UNIX for Dummies Questions & Answers | 1 | 12-14-2001 11:26 AM |
| blocking mail using sendmail | liyas | UNIX for Dummies Questions & Answers | 4 | 10-09-2001 10:53 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
PHP piping mail to sendmail quickly
In order to prevent any php processes on our web server from waiting
for sendmail hangups (name resolution issues, etc), we wrap sendmail in a simple shell script and push it to the background and disown the process so that any php script on our site can continue on processing code and not have to wait for sendmail to return. So, in php.ini we have the following setting: sendmail_path = "/usr/local/bin/phpsendmail.sh -t -i" and in phpsendmail.sh we have the following: #!/bin/bash cat /dev/stdin | /usr/bin/sendmail "$@" & The problem we are encountering is that it seems to take quite a while (in computer time) for a lengthy (50K) text email to actually get piped into sendmail this way. When a script pushes out 20 emails of this size, we are seeing it take approximately 20-25 seconds. We have some background processes that send need to send batched email from a database table (for immediate delivery, not queued) and we would like to speed the process up, while still using this concept of pushing each sendmail process out to the background. What can we do to speed up the process of piping this information through the wrapper script and into the sendmail process? Thanks in advance for any advice.... GM |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|