Jump to content

php mail send 2 mail()


dflow

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.