email problem

SierraAR

Community Advocate
Community Support
Messages
827
Reaction score
17
Points
18
It would be easier for people to help if you posted your code for us to look at.
 

er.rohittank22

New Member
Messages
4
Reaction score
0
Points
0
Use this script for sending mail:
<?php

$to = "$toemail";
$subject = "$sub";
$body = "$msg";
$headers = "From: $cname<$cemail>\r\n";
$name = "$cname";
if (mail($to, $subject, $body, $headers, '-femail@gmail.com'))
{
echo("<p>Thanks You have recieve an email!</p>");
}
else
{
echo("<p>Message delivery failed...</p>");
}
?>
 
Last edited:

callumacrae

not alex mac
Community Support
Messages
5,257
Reaction score
97
Points
48
use maling fxn in cpanel 2 resolve

...that doesn't make sense. And it's wrong, anyway.


I believe that there are some problems with mail at the moment because of the firewall. I can't remember what the workaround is, it might be worth searching the free hosting forum.
 

iearn.tk54

New Member
Messages
85
Reaction score
1
Points
0
...that doesn't make sense. And it's wrong, anyway.


I believe that there are some problems with mail at the moment because of the firewall. I can't remember what the workaround is, it might be worth searching the free hosting forum.

i thought that it was the problem of user thats y i just suggested to check 4 cpanel fxn
n was not aware about the firewall prob.
okz dear.....
 
Top