Re: mail function ()
[color=blue]
> 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 ?[/color]
Yes, replace the e-mail address sender@mail.com in
$mail="sender@m ail.com";
with your own address so that the mail appears to come from you, i.e. the
bounced messages will be returned to you.
[color=blue]
> /*************** *************** *************** *************** *************** ***
> Function : send_mail
> *************** *************** *************** *************** *************** ****/
> function send_mail($emai l)
> {
> $mail="sender@m ail.com";
> $vtext="thats the text\n;
>
> $confirm="Confi rm Message";
>
> $text=str_repla ce("\\\"","\"", $text);
> $text=str_repla ce("\'","'",$te xt);
>
> mail($email,$be staetigung,$vte xt,"From: ".$mail);
>
> }
>[/color]
Martin Lucas-Smith www.geog.cam.ac.uk/~mvl22
Senior Computing Technician (Web Technician) webmaster@geog. cam.ac.uk
Department of Geography, University of Cambridge (01223 3)33390
& Webmaster, SPRI webmaster@spri. cam.ac.uk
Scott Polar Research Institute, University of Cambridge
mail function ()
Collapse
This topic is closed.
X
X
-
Guest replied -
mail function ()
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($emai l)
{
$mail="sender@m ail.com";
$vtext="thats the text\n;
$confirm="Confi rm Message";
$text=str_repla ce("\\\"","\"", $text);
$text=str_repla ce("\'","'",$te xt);
mail($email,$be staetigung,$vte xt,"From: ".$mail);
}
Tags: None
Leave a comment: