Email functionality doesn't seem to be working

Status
Not open for further replies.

chintandesai2381

New Member
Messages
5
Reaction score
0
Points
0
Hi Support,

I am not able to send any emails from my website www.***********. I have created test page http://www.*******/testemail.php with following code. It returns "Email sent successfully" but I am not getting any emails (I have check spam as well). Same is with my contact us page. I have also set forwarders from "info@*********" to "*********@yahoo.com" which doesn't seem to be working either. Can you please help me to figure this out? Thanks a lot.

Regards,

****** ******i.

Code : http://www.**************/testemail.php
<?php

$msg = "test";
$headers = "From: info@***********u\r\n";
$headers .= "Reply-To: info@*********\r\n";
$headers .= "Content-type: text/html\r\n";
if(!(mail("*********3@yahoo.com", "From ******** website - User Query", $msg, $headers)))
echo "<li>Failed Sending Email</li>";
else
echo "Email sent successfully";
?>
 
Last edited by a moderator:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Change :

$headers .= "Content-type: text/html\r\n";

to

$headers .= "Content-type: text/plain\r\n";
 

chintandesai2381

New Member
Messages
5
Reaction score
0
Points
0
Hi Support,

Thanks for your response. Its working now as per your suggestion.

I am closing this thread. But is it possible to delete this tread as I didn't know it will be access by public and also it include my email addresses?

Thanks a lot for your help.

Regards,
Chintan Desai.
 
Status
Not open for further replies.
Top