Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Duplicate Mail When I Send A Mailing-list


I use mysql and the function mall to send a mailing-list. When I execute my script, certain person receives two or more identical messages. I think that the problem is in the server smtp which does not manage to send all the messages at the same time.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Mailing List Manager, Send To List
I'm looking for a mailing list script (php) that has a function to let
users to reach out to all recipient on the list by simple send the
email to a specific maillist- address.

Mailman has this functionn but as a just got a webserver account I
can't use mailman nor install it.

Mailing Form - Can't Get It To Send
I tried going through your sample code and that didn't work either. If a field isn't filled out properly the error message comes up as intended, and after I submit the form it redirects me to the correct website as intended. However, the email of the form information is never being sent back to me. Code:

Php Mailing List
Can anyone point me to a php script that stores email addresses into a
txt file?

The purpose for this is for a mailing list, ideally if a user wanted to
unsubscribe the email would be removed from the text file.

Php Mailing List
Is it possible to implement a mailing list using PHP?. I know I could
maintain a list of emails addresses in a db and send mail to them through my
website, but how can I get true mailing list behaviour where emails are sent
to a particular address (like mailinglist@mydomain.com) and then distributed
to all of the email addresses?.

PHP For A Mailing List
I' trying to develop a mailing list system in php and mysql.

Mailing List
I want to create a mailing list for my website but i have never done this before, I searched on google and all i found was free mailing lists but when a user subscribes, it takes them to the website that provides the free mailing list and it has an ad for them when i send out an email, can anyone help me create my own mailing list?

Mailing List
i insert the emails and their names so i can do it lik 'Hi {name}, wehave a great new product.. etc' OK but how do i send an email to he all the emails in the rows, using mail()?

Mailing List
I am making a simple mailing list, and i have created a form which adds a persons email to a php document. I'm not sure about how i woould remove an email from the php document though? Any ideas?

Mailing List
I am really interested in putting a mailing list on my website. I have only just discovered php and mysql and I found a program called php list on my cPanel X control panel on my website.

I would like to put a text box on my navigation bar that has inside it "enter your e-mail" (when they click this disappears) and a button on the right of that which says "join" (I will have a jpg underneath this text box saying "Mailing List").

When someone clicks on "join" I would like them to get sent to a page with the e-mail address field filled out in the right table with what the address they entered in the navigation pane, along with a name field they can fill out and a Submit button.

I have seen these on many websites so I assume it is not that hard to do, but I am pretty lost as to how everything is connected (the database (mysql?) and the php list program).

I assume when they click submit it will send their details to a mysql database / send them a confirmation e-mail.

I was wondering what code I will need to make this system work, as I have been reading and googling and I am quite lost as to the mechanics of how it all works.

PHP Mailing List Problem
Here's the problem: I've been trying to send to my mailing list using a PHP script, but the page that executes the send times out before the script can actually send to everyone on the list; only about the first half gets sent to.. Is there any possible way around this or to stop the browser from timing out?

Writing Mailing List In PHP?
what's the best way to write a simple mailing list program? If one tries to send email to over 600 addresses using mail(), a usual script will most likely timeout.

So, the question is, what's the best way to sendout email to over 600 ppl?

Php Mailing List-> Performance
i wrote a php script that sends mail to a list of email generated from a database.
this database contains about 8000 email adresses and depending on what the users chose in their preferences it sends out mail accordingly. in general this would come down to roughly 6000 emails per list.

the script iterates through the list of email addresses and send out a new email to every email address found that fits the mailing type. the box doing this is an athlon 1400Mhz.

now, my question, how heavy will this be for sendmail? i can imagine that this will take some time before all 6000 emails have been send. php is set in the ini to time out after 30 seconds and maybe this script will be running for longer than that with 6000 emails to send. i could test this but i dont think all of those people would be very happy receiving test emails.

also, i could send just one mail with all those email addresses stuffed into the Bcc header but i dont know if that would make difference and if the php mail() function likes 6000 mail addresses in the Bcc header. anyone with experience with sending large volumes of mail like this have some advice for me?

Php Mailing List Operation
I'm using the mail() function to send out newsletters to subscribers,
problem is that it seems a little unreliable...
at the moment I assemble the mail outside a loop then iterate through
all the mail addresses
for($i=0;$i<$numaddresses;$i++){
mail($to[$i],$subj,$message,$fromstr);
}
should i be putting in a delay message or a retry_on_fail method or
anything?

Subscription Mailing List
Im building my first php site and what im looking for is a simple
tutuorial / example of a form which allows users to enter their email
address, which is stored in my Mysql db.

Also need to know how to go about mailing everyone who subscribes to
my news letter.

I know its probably quite simple, but i'd like to check for duplicate
email addresses, verify email addresses (dont know if that possible)
and allow them to un-subcribe.

Mailing List Using MySQL / PHP
I have written a database which uses PHP to run through each ID in the
database and then generate a persons name and address to include into the
rest of the PHP to send an email out.

But as people have deleted or updated their details on this mailing list, I
now have "holes" in database. Ordinarily not a problem, but the code I've
written starts at ID 1 and after sending an email increments to the next
ID. But when it encounters a now vacant ID, it sends an error email to me
associated with that now blank ID row of data.

How can I change my code that will increment through all the results in
turn, but not give me these error emails when people have amended the
database?

Mailing List Script
Where I can find siple mailing list written in php and mysql ?

Timeout Mailing List?
i heave a mailing list with just over 700 people on it. on page one i have a form for newsletter to be typed in, then the person submits the form and the next page has the php to send out the newsletter to all the email addresses in the database.

my problem is that the page times out and an connection error occurs, so i don't think everyone in the list gets emailed. how do i get around this problem?

Php Mailing List Script
I need a php mailing list script, can anyone recommend one? preferably OS if possible.

Dynamic Mailing List?
I have a schedule of people that need reminders sent to them weekly.  I have figured out how to set a Crontab to send the reminder automatically ... but the people are not the same every week.  I know that I could build multiple scripts and hard code the email addresses, setting a cron job for each - but is there any way to build ONE script that will read a text file based on the date and pull the names/email addresses off of that? 

Making A Mailing List
I have tons of members on my website, and I want to e-mail them all, but I do not want add all their names to a address book or e-mail them individually.

So I was wondering after I flush(Erase) the database, when the user register the "script" will auto adds them to a mailing list, so I can download the mailing list and add it to my address book and e-mail them all at once.

If there is a script already out there, can I have it?

Key Code Generation For Mailing List
I want to send a unique url to each member of my mailing list for mailing list removal purposes. I see this done all the time, but I'm not sure how they do it. I want the user to click on the link at the bottom of their email, which takes them to a page where they confirm there removal from the list.

It doen't have to be super secure, its just a personal site, I just don't want idiots going in and guessing random addressess trying to get them removed from the list.

Remove From Mailing List Via Variables In URL
i have often joined other mailing lists and i notice that when emails are sent out there is usually an option to delete your email from the mailing list.

i was wondering which is the best way to go about this. would it be a matter of sending a link in the email which is something like...

http://wwwmysite.com/deletemail.php?somebody@somewhere.com

deletemail.php being a simple script that takes that email addy and deletes it from the database? or is there a better way to do it?

Detect Duplicate Values In A Ranked List
Spreadsheets like Excel do a nice job of detecting if there are duplicate values with their rank function - this is what I would like to mimic. This is my small script that detects the rank position of a variable Hank_Wins in a mysql database: PHP Code:

Adding A Mailing List To Vbulletin Registration
I have added yes and no buttons to an option called bsmailinglist in the form for registration on my forums. Now I want to have that answer handled according to the following code. I have the yes button set to TRUE and the no button set to FALSE. After adding the folloing code to the script that handles the form (register.php), I get a parse error on the last line of php, the closing php flag. Code:

function BSwrite ($email) {
$BSfile = "bsmailinglist.txt";
$BSopen = fopen ($BSfile, "a");
if ($BSopen) {
fwrite ($BSopen, "$bsmailinglist, ");
fclose ($BSopen);
} // end BSwrite Function
if ($bsmailinglist) {
BSwrite();
}

Is It Very Difficult To Setup A Simple Mailing List?
I've seen and been on mailing lists where there are a bunch of people on it, but, when you reply to "the list" you are actually replying to something like, "mailinglist@widgets.com". So I want to setup something like this for a special project. I'm imagining that when the server gets an email to "mailinglist" that it would basically just re-send the message to everyone on the list.

Is this very difficult or even advisable using PHP's mail function?

Is There Any Open Source Mailing List Manager That Works Good
I am searching for a good open source php mailing list manager for some days. can any one suggest me one please.

Php Sending Mails To Mailing List Show Strange Headers
i need to send a mail to one mailing list address.when i sent to this the from address comes as newsletter-request@abc.com; on behalf of; ABC[abc@abc.com]
where newsletter@abc.com is the mailing list id abc@abc.com is the moderator id

when i change the to address to any other email address other than this mailing list, the from field works fine. i have given the mailing list, in the Bcc header.

Occasionally Get Duplicate Emails From Mail()
I'm trying to spam myself :- with 2,000 emails, shooting for 15,000,
and I will occasionally get two identical emails. I'm putting a
$counter++ as the from and part of the subject line so I can see
what's going on. Any reason why this might happen? here's my code just
in case.....

Exim / Php Mail Function / Bulk Mailing
I've learned that my new dedicated server comes with exim installed. From what I understand, you can use php's mail() with exim, but you can't modify the 'From' header. I need to do that so I've scurried in search of an alternative to the mail function. I found the function below ( from http://www.php.net/manual/en/ref.mail.php#41340 ) works well, but, not being at all familiar with exim, I have a few questions about it.

Is it feasible to be used in a bulk email script (1 call per email)? I'm a little concerned about the sleep function. Obviously that's going to slow down an already somewhat resource intensive bulk email script. So what is it actually there for and is it really even needed? If this isn't a doable solution, is there something else you could suggest?

Php Mail() Function Doesn't Send To Pop3 Mail Address
I'm writing a registration script for een webhosting company but the mail() function i used works only for hotmail addresses and not for pop3 email accounts, it also works for other not pop3 email accounts, does any one know what i should do to make this work. I used the same method before on an other server and there it worked perfectly.

Why Does Mail() Only Send Messages To Some E-mail Addresses?
I've got a form that I use to collect information and store it in a MySQL database and use PHP to send a mail() message confirming registration. When I use my work e-mail address, I never receive the message, but when I use my home e-mail address, I get it right away. What am I doing wrong?

PHP Mail() Function Failing To Send Mail
Our setup: PHP 4.3.11, FreeBSD 5.3 RELEASE, Sendmail 8.1, 1 host
environment, 2 jails.

Our problem: While we can send email from the command line just fine
in one of the jails, we cannot use the php mail() command to send email
using sendmail at all. The function, when executed, does absolutely
nothing. No error, no reports to the maillog, nothing.

I've read somewhere that it's "not possible" to send mail using the php
mail() function within a freebsd jail, but i'm nearly certain we have
it working this way on another server, but can't seem to figure out the
issue.

Why Can't I Send A Mail With PHP
I can't send a mail with the following mail header:
$headers = "MIME-Version: 1.0";
$headers .= "Content-type: text/html; charset=iso-8859-1";
$headers .= "From: "User" &lt;user@inter.net&gt;";

Therefore $headers is set to (echo $header;)
MIME-Version: 1.0 Content-type: text/html; charset=iso-8859-1 From: "User"
<user@inter.net>

The mail has not been delivered and my PHP server says:
[24-Nov-2005 00:37:19] PHP Warning: mail() [<a
href='function.mail'>function.mail</a>]: SMTP server response: 501 5.5.4
Invalid Address in C:PHPfile.php on line 132

If I use
$headers .= "From: user@inter.net";
instead of
$headers .= "From: "User" &lt;user@inter.net&gt;";

is works perfect.

Cant Send Mail
Using windows XP, when I try to send mail using 4 parameters, I get this :
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to
relay for ...

Cant Send Mail
The problem is I am the mail server administrator also. This is a small
company of 4 ....

Send Mail
I am trying to send email through PHP, i used the following code and it seems working every lines...but i can't really get a email from this..

$from="Frankie";
$contents="hello ...how r u ar";
$subject="helo";
$to = "frankie@aristo.com.hk";
$from_header = "From: $from";

print("mailing");
mail($to, $subject, "", $from_header);
print("sent");

Send Mail In Jsp
how to send a mail using jsp on a linux platform (cobalt)...i have tried using the smtp part,but is gives the security access error.

PHP Doesn't Send Mail
I can't make my PHP send mail even if I set an SMTP for it? What could I have missed. Upon using mail(), it sends a true flag, but I never receive the mail. Why? What have I missed out.

Send Mail
I want to send mail to employer after they register into database. It's same when I register mail yahoo.

How To Send An E-mail....
I have a form and one of the fileds is a users e-mail address

I have the validity set-up and the form now works, accepts data and posts to
a mysql database - that side works great...

I now need to use the e-mail field in the form to send a mail back to the
user who entered the form to let them know registration was a sucess...

How do I do that?

I'm suspect there is not an easy way so a link to a website or code would be
helpful..

Sorry about the crosspost - but this is an urgent one and I need a quick
answer... i've googled but founf nuthin :(

Can't Send A Mail
I don't know where my problem is. Hopefully someone can give me
some hint to explore the problem more. I am running Apache 2.0.48
wih PHP 4.3.4. The apache is running as nobody. I want to use the
mail() to send out the email from a web page but it can't work. The
web server is on the red hat linux 9.0 with rpm sendmail-8.12.8-9.90
and sendmail-cf.
In the begining, I got the error message, 'SYSERR(nobody) can not
write to queue directory /var/spool/clientmqueue/ when I use the
mail(). I kind of make some progress if not worse to follow the
sendmail/SECURITY. I don't see the error message above anymore.
However, the mail does not go out. Here is what I get in maillog now.
Dec 9 20:48:32 flash sendmail[7859]: hBA1mWr6007859: from=nobody,
size=112, class=0, nrcpts=0,
msgid=<200312100148.hBA1mWr6007859@flash.ninds.nih.gov>,
relay=nobody@localhost

Php - Send Mail
I'm using this bit of "send me an email" code in a different part of the site and it works great.

So, I pasted it after this insert query (see below) so as to learn when a "new member" has registered, but when I test it, I'm not receiving mail -- even checked the Bulk folder. What do I need to change to make this work? Code:

Send Mail From Another Host?
Is there any way to send an email message without using the mail server on the local machine?

for example: my computer is running apache and php. When some script is activated, I would like my computer to send out an email. But... I want to connect to another mail server to send the message as my local machine isnt running postfix or sendmail. Can this be done easily with php's functions?

PHP Mail() Function Doesn't Send To AOL?
I am running a PHP3 script, and I have noticed that it won't deliver messages to AOL. It DOES send email messages to mail accounts on my server, I have not tried anywhere else. Any ideas why I do not receive the email sent to AOL? Here is the code:

$email = "name@aol.com";
$subject = "From datera.com";
$message = $message."Tour the Web Now!n";
$message = $message."http://www.datera.comn";
mail($email, "$subject", $message, "From: datera@datera.comn");

NEVER GETS SENT?

How To Send Mail At A Later Time
I have a form on my site that I would like to generate an automated response from when it is submitted.

The trick is that I want the auto response to send an hour or so after the form is submitted. If I'm using PHP to send mail is there something I can add to the header of an e-mail to tell it to send at a specific time?

Send HTML Mail
I try mail() function. we can send plain text mail using this function. but if i want to send Html based mail like newslatter then how it is possibal in PHP. Please describe in detial. I have little idea that i have to use mime multipart mail format for this, i don't know who to use this with mail function...

Send E-mail Notification
I have a table in mySQL with a birthday field in it, I need a PHP script that notifies the admin one day before about the users Birthday by sending him email reminder.

Function Will Not Send Mail!
I've created the below function to automatically send me an alert in outlook
when someone completes various forms on my website.

The problem though is that mail reports that I have only 1 of the 3 required
parameters defined!

I have no idea where this is going wrong, because as far as I can tell I
have defined all 3 parameters! Can anyone spot the problem?

<?PHP
function alert_outlook($Type)
{
$Type = strtolower($Type);

switch($Type)
{
case 'newsletter':
$Subject = 'message subject one here'
$Alert = "Hi,
Just thought you would like to know that there has been
another subscription to the newsletter!

";
break;

$Alert = wordwrap($Alert, 65);
}

//set headers etc
$Recipient = "Auto Alerts<AutoAlerts@domain.com>";

$Message = "

{$Alert}

";
$Message .= 'Date: ' . date("l, js F Y") . "";
$Message .= 'Time: ' . date("H:i:s") . "";
$Message .= 'IP Address: ' . $_SERVER['REMOTE_ADDR'] . "";
$Headers = "FROM: Auto Mailer<AutoMailer@Domain.com>";

mail("$Recipient, $Subject, $Message, $Headers");

//error check
if(!mail("$Recipient, $Subject, $Message, $Headers"))
{
return FALSE;
}
else
{
return TRUE;
}
}
?>

Php Send Mail Problem
I have a function to send UTF-8 encoded HTML Format email to user.

But my found that the produced email sometime accidently being injected
with the ! sign.......

e.g. <td> sometime become <!td>

here is the code for that function

$sql = "select * from user where userid='$userid'";
$res = send_sql($sql);
//Get Reserve staff info
$row = mysql_fetch_array($res);
$fusername = $row["UserName"];
$femail = $row["Email"];
$message= ERNST."<html><body>";
$message.= "Hi ".htmlspecialchars($fusername).",<br><br>";
$message.= "Please note that the system accepted your borrowing of
files at ".date("d M Y H:i:s")."<br>";
$message.= "<br>";
$message.= "<table width=ï`%' border=&#391;'>";
$message.= "<tr align='center'
bgcolor='#79B1D2'><th>FileID</th><th>Group</th><th>Client
Name</th><th>Client Code</th><th>Year
End</th><th>Type</th><th>Description</th></tr>";
$i=0;
foreach ($fileid as $x) {
$cname="";$gname="";$cc="";$yr="";$type="";$des="";
$query = "SELECT
c.clientname,g.groupname,clientcode,yearend,type,D escription";
$query .= " FROM Client c, f_group g, f_folderlist fl,f_file f";
$query .= " where fl.fileid='$x' and fl.fileid=f.fileid and
fl.clientid=c.clientid and c.grpid = g.gpid" ;
$res2 = send_sql($query);
$j=1;
while($row2 = mysql_fetch_array($res2)) {
$cname .= $j . ": " .htmlspecialchars($row2["clientname"]);
if ($j<=mysql_num_rows($res2)-1) $cname.="<br>";
$gname = $row2["groupname"];
$cc=$row2["clientcode"];
$type=$row2["type"];
$yr=$row2["yearend"];
$des=$row2["Description"];
$j++;
}
$message.="<tr align='center'><td>".htmlspecialchars($x)."<td
align='left'>".htmlspecialchars($gname)."<td
align='left'>".$cname."<td>".htmlspecialchars($cc)."<td>".htmlspecialchars($yr)."<td>".htmlspecialchars($type)."<td>".htmlspecialchars($des);
} //endforeach
$message.= "</table>";
$message.= "<br>";
$message.="<table width=ï`%'><tr><td>Your truly,<BR>System
Administration/Operator<td align='right'>Date:
".htmlspecialchars(date("d M Y"))."</table>";
$message.= "</body></html>";
$headers ="From: MailDaemon <maildaemon@hk.ey.com>" .
'X-Mailer: PHP/' . phpversion() . "" .
"MIME-Version: 1.0" .
"Content-Type: text/html; charset=utf-8" .
"Content-Transfer-Encoding: 8bit";

@mail($femail, "Notify of File borrowing", $message,$headers);


Copyright © 2005-08 www.BigResource.com, All rights reserved