jerome1g
Member
- Messages
- 113
- Reaction score
- 1
- Points
- 18
Not sure if I am do this right. I have programs on X10hosting that I would like to be able to send email from my php to my gmail account. When I run the email program I get nothing. I do get the echo message at the end of the program
Thanks
Here is the program:
<?php
$to = 'XXXXXXX@gmail.com';
$subject = 'the subject';
$message = 'hello is there anybody out there?';
$headers = 'From: XXXXXX@gmail.com' . "\r\n" .
'Reply-To: XXXXXX@gmail.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
echo 'And away we go'
?>
Thanks
Here is the program:
<?php
$to = 'XXXXXXX@gmail.com';
$subject = 'the subject';
$message = 'hello is there anybody out there?';
$headers = 'From: XXXXXX@gmail.com' . "\r\n" .
'Reply-To: XXXXXX@gmail.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
echo 'And away we go'
?>