It is currently Mon Sep 06, 2010 5:59 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: E-mail is only delivered to a certain e-mail-address
PostPosted: Fri Jan 29, 2010 1:02 am 
New php-forum User
New php-forum User
Joined: Fri Jan 29, 2010 12:40 am
Posts: 1

Hi,

I'm trying to send an e-mail to multiple recipients by using the following coding:

$to = 'user.email@mail.com';
$subject = "Some subject";
$message = "A message";
$headers = 'From: Company name' . "\r\n" .
'Reply-To: webmaster@mail.com' . "\r\n" .
'Cc: webmaster@mail.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to,$subject,$message,$headers);

The problem is that this coding only delivers an e-mail when the $to and Cc match the same specific e-mail in a database.
As far as I can see, there is no coupling to a database in the coding above and yet it seems to depend on one :?

Anyone who experienced a similar problem?

Best regards


Offline
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 8 hours


 Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Sponsored by Dreamlink Web hosting and Traduzioni Rumeno Italiano and ASSP Deluxe for cPanel.

 
cron