Re: [PHP] Send an e-mail witdh php
Hello, I want to send an e-mail to one address(To) and many carbon copies to many e-mailadresses(BCC). Is there a class to do this?? Henk Hi Henk, You don't need a special class, just use: $to = [EMAIL PROTECTED]; $subject = Your Subject; $messages = some text you want to send...; $headers = CC: firstname[EMAIL PROTECTED], [EMAIL PROTECTED],; $headers .= [EMAIL PROTECTED]\n; $headers .= From: Your name[EMAIL PROTECTED]\n; mail ($to, $subject, $message , $headers); Best, Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Send an e-mail witdh php
That doesn't work. He is gives the error: Failed to Connect Henk Sebastian Wenleder [EMAIL PROTECTED] wrote in message news:p0510030ab822a385d74e@[192.168.100.2]... Hello, I want to send an e-mail to one address(To) and many carbon copies to many e-mailadresses(BCC). Is there a class to do this?? Henk Hi Henk, You don't need a special class, just use: $to = [EMAIL PROTECTED]; $subject = Your Subject; $messages = some text you want to send...; $headers = CC: firstname[EMAIL PROTECTED], [EMAIL PROTECTED],; $headers .= [EMAIL PROTECTED]\n; $headers .= From: Your name[EMAIL PROTECTED]\n; mail ($to, $subject, $message , $headers); Best, Sebastian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Send an e-mail witdh php
-Original Message- From: Henk [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 22, 2001 3:21 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Send an e-mail witdh php That doesn't work. He is gives the error: Failed to Connect Henk check your /etc/php.ini conf file -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Send an e-mail witdh php
Also, If you have an array of addresses, use the implode() function. $sAddressList = implode(',', $aAddressArray); and then use that with the Bcc: header in the mail function. -Jason Garber IonZoft.com Hi Henk, You don't need a special class, just use: $to = [EMAIL PROTECTED]; $subject = Your Subject; $messages = some text you want to send...; $headers = CC: firstname[EMAIL PROTECTED], [EMAIL PROTECTED],; $headers .= [EMAIL PROTECTED]\n; $headers .= From: Your name[EMAIL PROTECTED]\n; mail ($to, $subject, $message , $headers); Best, Sebastian At 01:50 PM 11/22/2001 +0100, Sebastian Wenleder wrote: Hello, I want to send an e-mail to one address(To) and many carbon copies to many e-mailadresses(BCC). Is there a class to do this?? Henk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]