473,385 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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($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
1 2465

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Groupe Eurower | last post by:
Hi, I would like contribute to the PHP development but i don't really know where i can submit my codes ! In fact, i'm a Web Hosting and i authorize the utilisation of the mail() function. ...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
2
by: Ruud | last post by:
Just before leaving for a holiday my collegue modified this script. Now it won't send any body text (The data filled in on the form) and in an error condition it won't send any attachments either....
1
by: maxxxxel | last post by:
Hi Can anyone help me with some asp code , I changed the code to use CDO.message instead of the old cdont.sys to send mail from a ASP webpage which works fine. Our problem is that when we send...
7
by: mukeshrasm | last post by:
Hi I am no able to send mail and it is giving this error Warning: mail(): SMTP server response: 530 5.7.3 Client was not authenticated in c:\inetpub\wwwroot\eshop\includes\classes\email.php on...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.