Send To group mail

the mail() function

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 2
Joined: Tue Mar 06, 2012 5:39 pm

Send To group mail

Postby hamidi » Tue Mar 06, 2012 5:56 pm

I tried to send notification mail in PHP to my group email, but these updates, doesn't appear. the code is like this:

$to = "";
$subject = "test mail";
$message = "Hello! This is a simple email message.";
$from = "";
$headers = "From:" . $from;
echo "Mail Sent.";

FYI, contained a few members. i got this trouble since it was distributed mail group. but if the recipient is an individual mail, its working properly. did php not support distributed group mail?

Please help.

User avatar
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: Send To group mail

Postby egami » Wed Mar 07, 2012 12:08 pm

PHP doesn't care who the recipient is. Once it passes the mail to the SMTP server, PHP is done.

Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 3 guests