Jump to content

Recommended Posts

Posted

Hello,

 

I have the simple PHP mail command of (for testing), to send out an email:

 

echo "<body>";

$to = "mail@mail.com";

$subject = "This is subject";

$message = "This is simple text message.";

$header = "From:mail@gmail.com \r\n";

$retval = mail ($to,$subject,$message,$header);

if( $retval == true )

{

echo "Message sent successfully...";

}

else

{

echo "Message could not be sent...";

}

 

When I run it on here it says "Successful". I realise that I must change [mail] section in the PHP.ini file to make this work? Does anyone know how to do this? Or can I run the mail() from heliohost?

 

Thanks

 

Matthew

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...