Jump to content

SMTP issues


laozing

Recommended Posts

gmail

 

Do you have a gmail account to try this test email with to see if they are blocking heliohost?

 

<?php
$to = "your_address@gmail.com";
$subject = "Test Mail";
$message = "Hello world!";
$headers = "From: you@your_site.heliohost.org";
mail($to, $subject, $message, $headers);
echo "The email was sent";
?>

 

 

Link to comment
Share on other sites

Just copy the code below to your server and change it two places.

 

1) $to = "your_address@gmail.com";

Put the email address your sending to, that would be your google address.

 

2) $headers = "From: you@your_site.heliohost.org";

Put your server email address here.

 

 

<?php
$to = "your_address@gmail.com";
$subject = "Test Mail";
$message = "Hello world!";
$headers = "From: you@your_site.heliohost.org";
mail($to, $subject, $message, $headers);
echo "The email was sent";
?>

 

After your finished just click onto the file and the email is sent.

 

 

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...