0

Help me please

In PHP, how can I use the mail function on a local server?

21st Nov 2024, 3:40 AM
Mohammed Safras
Mohammed Safras - avatar
1 Odpowiedź
+ 1
Mohammed Safras are you asking for the code itself... <?php $to = "my_friend_at@yandex.ru"; $subject = "This is a Test"; $message = "This is a test email sent from a local server."; $headers = "From: my_email_at@yandex.com"; if (mail($to, $subject, $message, $headers)) { echo "Email was successfully sent!"; } else { echo "Email bounced, try again."; } ?>
21st Nov 2024, 4:59 AM
BroFar
BroFar - avatar