Re: Sending email

From: Date: Sun, 22 Aug 2004 10:32:00 +0000
Subject: Re: Sending email
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-194415@lists.php.net to get a copy of this message
Hi Octavian Rasnita, Yes You can use mail() function for this purpose. Just separate each reciepent address by a comma (,) . $to="one@example.com,two@example.com"; $header="from:Me <me@yyou.com> \r\n"; $subject="subject@third.com"; $body="test"; mail($to, $subject, $body, $header); Will do the needfull. zareef ahmed --- Octavian Rasnita <orasnita@fcc.ro> wrote: > Hi all, > > I want to send a test message with the following > specifications: > > 1. The message is sent by sender@server.com. > > 2. The message is sent to the following recipients: > dest1@another.com, > dest2@another.com. > > 3. The message has the subject: subject@third.com > > 4. The message has the following header: > From: Me<me@you.net > To: Multiple recipients<recipients.info> > > 5. The body of the message is: > > Test > > Can I use mail() function for this? > > Thank you. > > Teddy > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > ===== Zareef Ahmed :: A PHP Developer in Delhi(India). Homepage :: http://www.zasaifi.com _______________________________ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush

« previous php.general (#194415) next »