SMTP server

mate93

New Member
Messages
1
Reaction score
0
Points
0
Hello!

How can i add on free host a SMTP server and then what i must write in my website code in lines:

$to = $email;
$subject = "Activate your account!";
$headers = "From: ";
$server = "";

ini_set("SMTP",$server);

$body = "

Hello $fullname, \n\n

You need to activate your account with the link below:
http://localhost/phpacademy/tutorials/loginsession/activate.php?id=$lastid&code=$random\n\n

Thanks!

";

//function to send email
mail($to, $subject, $body, $headers);

Thanks !

Mate93
 
Top