Mail functionality

Status
Not open for further replies.

kcaazsa34

New Member
Messages
2
Reaction score
0
Points
0
Hi,
The mail functionality for my php script is not working, is there some issue about that?
Thnx!
 

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
Hello,

Can you please be more specific -- what errors are you getting (if any) and what is your mail setup like:
Are you using sendmail (php's mail() function) or SMTP?
Does your From: address exist in your cPanel as a valid email address?
What is an example email that you are sending out?
 

kcaazsa34

New Member
Messages
2
Reaction score
0
Points
0
Hi,

I'm using the php mail function and I'm not including headers, but I tried with "Content-type: text/plain\r\n" and neither works. The mail function return value is always 1.

How can I add valid an email in cPanel?

Here is an example:
<?php
$to = "test@*******.x10.bz";
$subject = "Test";
$message = "Hello world";
echo(mail($to,$subject,$message, $headers));
?>

It was working fine yesterday before the network problem x10 had.

Thnx!
 

Anna

I am just me
Staff member
Messages
11,750
Reaction score
581
Points
113
in cPanel, with default layout of the panels, you'll find the option "email accounts" in the second panel from the top, from there you can create an email account under your domain(s).
 
Status
Not open for further replies.
Top