[PHP] mail() function problem

2002-08-31 Thread Akhmad D. Sembiring

Dear All,

I have a little problem with mail() function,

PHP Code:

--
mail($email, "Membership ok", $themsg,
"From: [EMAIL PROTECTED]\r\n");

mail("[EMAIL PROTECTED]",
"", "", "From: $email\r\n");
--

Why does the second mail() function did not ever send the email to
yahoogroups?

I wonder, can the mail() function be put in a loop structure (that traverse
an array of emails) and send all emails successfully?

Thanks for your advice,

Daniel

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/02


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] mail() function problem

2002-09-02 Thread Akhmad D. Sembiring

Dear Arul & friends,

thanks for your kind helps,
but the problem still exists.

the actual problem is that the 2nd mail() function
does not ever send the mail, no matter what the destination
and the additional header is.

is there a way to debug this problem?

thanks
Daniel

#  -Original Message-
#  From: Arul Venkatesh Kandaswamy [mailto:[EMAIL PROTECTED]]
#  Sent: Saturday, August 31, 2002 17:07
#  To: Akhmad D. Sembiring
#  Subject: Re: [PHP] mail() function problem
#  
#  
#  Hello
#  
#  $from  = "MIME-Version: 1.0\r\n";
#   $from .= "Content-type: text/html; charset=iso-8859-1\r\n";
#   $from .= "From: <[EMAIL PROTECTED]>\r\n";
#   $subject="Registration Confirmation";
#   $messge="test mail";
#   mail($mailid,$subject,$message,$from);
#  
#  Thanks and Regards
#  Arul venki
#  
#  - Original Message -
#  From: "Akhmad D. Sembiring" <[EMAIL PROTECTED]>
#  To: <[EMAIL PROTECTED]>
#  Sent: Saturday, August 31, 2002 2:02 PM
#  Subject: [PHP] mail() function problem
#  
#  
#  > Dear All,
#  >
#  > I have a little problem with mail() function,
#  >
#  > PHP Code:
#  >
#  > --
#  > mail($email, "Membership ok", $themsg,
#  > "From: [EMAIL PROTECTED]\r\n");
#  >
#  > mail("[EMAIL PROTECTED]",
#  > "", "", "From: $email\r\n");
#  > --
#  >
#  > Why does the second mail() function did not ever send the email to
#  > yahoogroups?
#  >
#  > I wonder, can the mail() function be put in a loop structure (that
#  traverse
#  > an array of emails) and send all emails successfully?
#  >
#  > Thanks for your advice,
#  >
#  > Daniel

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/02


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] mail() function problem

2002-09-02 Thread Akhmad D. Sembiring

#  On 09/03/2002 12:19 AM, Akhmad D. Sembiring wrote:
#  > Dear Arul & friends,
#  > 
#  > thanks for your kind helps,
#  > but the problem still exists.
#  > 
#  > the actual problem is that the 2nd mail() function
#  > does not ever send the mail, no matter what the destination
#  > and the additional header is.
#  > 
#  > is there a way to debug this problem?
#  
#  Most likely you have not configured PHP to use the mail() properly.
#  First things first. Which platform are you using?
#  Did you configure php.ini mail options for your platform?

unfortunately, the script is hosted on a hosting server
so I don't have access to the php.ini file

#  what does var_dump(mail(you arguments here)); return?

bool(true) 

thanks
Daniel
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/02


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php