dflow Posted February 24, 2011 Share Posted February 24, 2011 this worked and stopped, no error no idea why is this a conflict? echo("<meta http-equiv = refresh content=0;url=".$url_success.">"); mail($to_supplier, $subject_supplier, $message_supplier, $headers_supplier); $ok = @mail($email_to, $email_subject, $email_message, $headers); Link to comment https://forums.phpfreaks.com/topic/228723-php-mail-send-2-mail/ Share on other sites More sharing options...
ChemicalBliss Posted February 24, 2011 Share Posted February 24, 2011 It looks ok, albeit lacking a little code consistency and standards but it should work really, try this, though; mail($to_supplier, $subject_supplier, $message_supplier, $headers_supplier); mail($email_to, $email_subject, $email_message, $headers); Header('location: $url_success'); exit(); Also, you may want to echo all the variables your using in each mail() functuion to make sure they are not wrong, eg. exit(" -SUPPLIER- $to_supplier $subject_supplier $message_supplier $headers_supplier -EXTRA- $email_to $email_subject $email_message $headers "); hope this helps Link to comment https://forums.phpfreaks.com/topic/228723-php-mail-send-2-mail/#findComment-1179218 Share on other sites More sharing options...
dflow Posted February 24, 2011 Author Share Posted February 24, 2011 It looks ok, albeit lacking a little code consistency and standards but it should work really, try this, though; mail($to_supplier, $subject_supplier, $message_supplier, $headers_supplier); mail($email_to, $email_subject, $email_message, $headers); Header('location: $url_success'); exit(); Also, you may want to echo all the variables your using in each mail() functuion to make sure they are not wrong, eg. exit(" -SUPPLIER- $to_supplier $subject_supplier $message_supplier $headers_supplier -EXTRA- $email_to $email_subject $email_message $headers "); hope this helps cheers ill give it a go Link to comment https://forums.phpfreaks.com/topic/228723-php-mail-send-2-mail/#findComment-1179222 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.