Google Answers Logo
View Question
 
Q: Sendmail sends multiple copies of email message ( No Answer,   2 Comments )
Question  
Subject: Sendmail sends multiple copies of email message
Category: Computers > Internet
Asked by: ksoufi-ga
List Price: $50.00
Posted: 06 May 2004 10:54 PDT
Expires: 12 May 2004 08:27 PDT
Question ID: 342162
Greetings,

I have a PERL script running on a COBALT RAQ4 server. This script
sends a text newsletter to subscribers. Subscribers' email addresses
are stored in MySQL database. So this script reads the list of
subscribers email addresses then sends the newsletter email using
Sendmail. This newsletter is sent once a week.

Occasionally (once every 3-4 weeks), the newsletter subscribers
receive multiple copies (2-4) of the newsletter email (about 1 minute
apart).

Why is this happening and how can it be fixed?

Thanks in advance.

Request for Question Clarification by netcrazy-ga on 06 May 2004 12:55 PDT
Hello,
To answer your question, I'll need the following details.

1. Are you running this as cron job? If yes, then I need details about that cron.
2. If possible, I'd like to see that perl script too. 

Did you start seeing this behavior recently or it is from day 1 when
this script was put on the server ?

Let me know.

Thanks
netcrazy-ga

Clarification of Question by ksoufi-ga on 06 May 2004 13:48 PDT
Greetings,

Thanks for your help.

The script is run from a button on an HTML webpage. This button calls
the script which resides in the CGI-BIN directory.

This problem started to occur recently (every once in a while). No
changes to the script since it was developed three years ago. What is
changing is the number of subscribers (increasing) and the number of
invalid email addresses in the list.

Thanks again
Answer  
There is no answer at this time.

Comments  
Subject: Re: Sendmail sends multiple copies of email message
From: passive-ga on 06 May 2004 12:57 PDT
 
Hi there,

I think more information will be necessary for an appropriate answer to be given.
I would need to see the code in question in order to give you any kind
of definite answer.
Offhand, the reasons I can think of are:
A problem with the scheduling script, that causes it to run multiple
times in certain circumstances.
A problem with the system timer.
A problem with the database query, that somehow returns multiple
copies of each address.
A problem with the script itself, that causes it to loop over the addresses.
A problem with the submission of the newsletter itself, that it is
submitted multiple times by accident.

There are certainly things that can be done to test each one of these,
but describing in detail how to test for all possible causes of the
problem, would be beyond the scope of this question, and problem of
Google Answers entirely.
Subject: Re: Sendmail sends multiple copies of email message
From: ksoufi-ga on 06 May 2004 13:52 PDT
 
Greetings,

Thank you for your help.

The script is run manually (pressing a button on an HTML webpage). So
there is no scheduling script.

There are many invalid email addresses in the list. We try to remove
them but there are always new ones.

The script has been working for the last three years. It is recently
(in the last three months) that we started experiencing this problem.

Thanks again

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy