Jump to content

How To Configure To Send Emails Using Php Mail(()


matthewc

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...