简体   繁体   中英

I can't send mail with Php

I want to send mail with php on my website. I don't know very well php.After I search and I created mail.php files. It's includes this code:

 $name = $_POST[“your-name”]; $from = $_POST[“your-email”]; $message = $_POST[“your-message”]; $headers = "From: $mail\\r\\n"."Content-Type: text/html;Charset=iso-8859-9-r\\n "; mail("admin@ardazaman.com","konu / Subject ", $message ,$headers); ?>

When I send to mail, The output is that:

在此处输入图片说明

I won't know what I do. Thank you for helping. Have a good day :).

That's on your email client provider, they don't allow sending html emails.

Best you can do is to contact them to see if there are any workarounds. otherwise you'll have to send a plain email.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM