By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,746 Members | 1,928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,746 IT Pros & Developers. It's quick & easy.

mail function ()

P: n/a
hi ng,
what can i do in the following mail function, which hast 400
subscribers
who are read from a database and to which the mails are send in a
loop, when there are some adresses who are not reachable.
My provider receives all the fail mails.
is it possible to send the mail daemons ( failures ) to a special
adress,
so that the provider doesnt reseive so many emailfailures ?
thx for a quick answer
haref

/************************************************** ****************************
Function : send_mail
************************************************** *****************************/
function send_mail($email)
{
$mail="se****@mail.com";
$vtext="thats the text\n;

$confirm="Confirm Message";

$text=str_replace("\\\"","\"",$text);
$text=str_replace("\'","'",$text);

mail($email,$bestaetigung,$vtext,"From: ".$mail);

}
Jul 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

when there are some adresses who are not reachable. My provider receives
all the fail mails.

is it possible to send the mail daemons ( failures ) to a special
adress, so that the provider doesnt reseive so many emailfailures ?

Yes, replace the e-mail address se****@mail.com in

$mail="se****@mail.com";

with your own address so that the mail appears to come from you, i.e. the
bounced messages will be returned to you.
/************************************************** ****************************
Function : send_mail
************************************************** *****************************/
function send_mail($email)
{
$mail="se****@mail.com";
$vtext="thats the text\n;

$confirm="Confirm Message";

$text=str_replace("\\\"","\"",$text);
$text=str_replace("\'","'",$text);

mail($email,$bestaetigung,$vtext,"From: ".$mail);

}

Martin Lucas-Smith www.geog.cam.ac.uk/~mvl22
www.lucas-smith.co.uk

Senior Computing Technician (Web Technician) we*******@geog.cam.ac.uk
Department of Geography, University of Cambridge (01223 3)33390

& Webmaster, SPRI we*******@spri.cam.ac.uk
Scott Polar Research Institute, University of Cambridge
Jul 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.