Hello everyone. I joined x10hosting today, and must say I'm very impressed. I've been coding PHP for a while now, but I have no experience with the PHP mail() function- I really don't know where to begin.
I just want a basic email function to send an activation email to members of my site. I know I need to do something with SMTP, but I don't know what, or where to find the information.
Here is the most basic code I can find for sending mail:
<?php
$to = "someone@example.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
Can somebody please walk me through what i need to do to get that working for my site?
(site address: http://policetycoon.x10.bz/)


LinkBack URL
About LinkBacks

