I am trying to implement the mail function; 

Here's the SMTP directive in the php.ini file: 
SMTP = smtp.west.cox.net 
sendmail_from = [EMAIL PROTECTED] 

Here's my code: 

$to = $compEmail; 
$subject = 'Jobs on the Road email verification'; 
$message = 'test'; 

if ( @mail( $to, $subject, $message, 
"To: $compContact <$compEmail>\n" . 
"From: [EMAIL PROTECTED]\n" . 
"MIME-Version: 1.0\n" . 
"Content-type: text/html; charset=iso-8859-1" ) ) 
{ 
// email sent successfully 
header ( 'Location: ../verify/emailVerification.php?sts=1' ); 
} 
else 
{ 
// email could not be sent 
header ( 'Location: ../verify/emailVerification.php?sts=0' ); 
} 

I am being sent to the page that is a result of an unsuccessful attempt.
Can anyone see any problems with my code, is there something that I am
missing???? Thanks for any help or light that you could shed on my
frustrating problem.


____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
       Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
    http://wdvl.internet.com/WDVL/Forum/#sub

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to