email - Cant send php mail but no error is shown -


hi,

i running centos 7 cant send php mail. dont error whatsoever. mail wont reach destination.

this script:

<?php date_default_timezone_set('america/los_angeles'); mb_internal_encoding('utf-8'); if(isset($_post['submit'])){ $name=$_post['name']; $email=$_post['email']; $subject=$_post['subject']; $to  = $_post['target']; $message = $_post['message']; $from_name = mb_encode_mimeheader($name,'utf-8'); $headers  = "mime-version: 1.0\r\n"; $headers .= "content-type: text/html; charset=utf-8\r\n"; $headers .= "to: $name <$to>\r\n"; $headers .= "from: $from_name <$email>\r\n"; mail($to, $subject, $message, $headers); } ?> 

how can configure @ least let me know why not sending mail?

thank you.


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -