aburayane98
New Member
- Messages
- 6
- Reaction score
- 0
- Points
- 0
Hello everybody,
I tried to send an e-mail through my website but it doesn't go:
Thanks in advance
---------- Post added at 05:59 AM ---------- Previous post was at 04:42 AM ----------
it works now thanks
I tried to send an e-mail through my website but it doesn't go:
PHP:
<?php
$to = 'my_mail@gmail.com';
$subject = 'test';
$message = 'test';
$headers = 'From: my_mail@gmail.com' . "\r\n" .
'Reply-To: From: my_mail@gmail.com' . "\r\n";
$status = mail($to, $subject, $message, $headers);
if ($status)
{
echo 'mail sent';
}
else
{
echo 'failed';
}
?>
Thanks in advance
---------- Post added at 05:59 AM ---------- Previous post was at 04:42 AM ----------
it works now thanks