bulk mail as a background job

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers bulk mail as a background job
# 1  
Old 12-21-2001
bulk mail as a background job

I presently use the php function mail() to send to a mailing list with over 5000 recipients. Even with blind copy, I get timed out and the process takes too long.

I would like to set the job up as a background job. Can someone help me with the shell code for sending mailing as a background job.
# 2  
Old 12-28-2001

although that most ppl ( including myself) are against SPAM but I am sure that you are not SPAMing ppl

I faced the same situation few weeks ago and my solution was simple , while you are going to BCC all the recipent ....

use PERL ,, it is simple to write a shell script in PERL to send emails , use PHP to store the message in DB or whatever you want ( i.e file ) or just use the script it self to get the message by STDIN

I assume that you store the addresses in DB , let the perl script retreive the message + email addresses and do the process

if you want , you can devide the process to send X emails in each turn , so you don't kill the server Smilie use sleep(X) where X is a number..

I know this might not be the best solution ,, but its a proper one

good luck and all the best wishes.
# 3  
Old 01-01-2002

Thanks for your tip. I am in the middle of combining php and perl now so hopefully it will work fine.

BTW, it's definitely not for spamming. It's for real subscription lists. I too detest all the spam that I receive and wish there was a better clamp down on it. Happy New Year.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Background job issue

How to bring a backgroud job say sample_script.sh to foreground (4 Replies)
Discussion started by: rafa_fed2
4 Replies

2. Shell Programming and Scripting

Background Job

Hello Everyody, Having a doubt. sort file1 & when we sent a job to the background it returns Job Number PID again if we want to ... (1 Reply)
Discussion started by: knroy10
1 Replies

3. UNIX for Advanced & Expert Users

Background job when completed

Hello - I submitted one background job last night and it completed today morning.I want to know exact time the job completed. I submitted backgroung job like this nohup cp -Rp /opt/apps/prod/proddb/proddata . & I want to know when above job completed on UNIX server.Above command... (9 Replies)
Discussion started by: Mansoor8810
9 Replies

4. UNIX for Dummies Questions & Answers

Best practice for bulk multi-part mail

Hi, I am currently building a PHP/MySQL database that handles our offices newsletters. Now everything works great in the alpha with only a few names in the list, but I anticipate that once we fill it up (around 10,000) that this will not work from the PHP. I already have the script echo the... (0 Replies)
Discussion started by: begin23
0 Replies

5. Shell Programming and Scripting

Cannot submit a background job

Hi all, I am currently facing a problem when i am submitting a script to run in the background to collect statistics round the clock on an AIX box. I don't have root authority nor can I set it in cron. So when i submit the job, it runs fine, but won't let me signoff. It prompts me that... (2 Replies)
Discussion started by: tansha
2 Replies

6. Shell Programming and Scripting

how to get background job to foreground

hi, i am just wondering that wen we give the following code we make a process run in background...can the viceversa be performed?i.e can this be made foreground again # sleep 75& 21751 # (4 Replies)
Discussion started by: sandilya
4 Replies

7. UNIX for Dummies Questions & Answers

background job

on gnome i open a terminal and run wget http://soommmething & in the background. because wget shows me downloading progress percentage and download speed continuously, I exit the gnome-terminal after a while i want to see the download percentage but dont know how. my ps -u myname shows that... (3 Replies)
Discussion started by: babayeve
3 Replies

8. UNIX for Dummies Questions & Answers

Background job

Hiya, Recently I've run a few scripts in the foreground, but have realised later they should of been better nohup'd and placed in the background. I understand how to change a foreground job into a background one, but how would put the job into the nohup state? Thanks (1 Reply)
Discussion started by: rdbooth
1 Replies

9. UNIX for Dummies Questions & Answers

background job

I try to run a script as background job. script: #!/usr/bin/csh /usr/bin/date +20%y-%m-%d > ~/datsql.txt If I start it I got this output: tac> ./datermitteln& 293 + Stopped (SIGTTOU) ./datermitteln& I insert the following line inside my script, but without any... (3 Replies)
Discussion started by: joerg
3 Replies
Login or Register to Ask a Question