Good day everyone,
I want to know how to send email to outlook in php after signing up please give some example and discuss it to me clearly thanks very much .. :*
in your php.ini enter your smpt address and port. Then just use a php script to send the mail. Here is a basic example:
<?php // Or you can define it in your script, but for security reasons do it in php.ini ini_set("SMTP","smtp.example.com" ); ini_set("smtp_port","port number" ); // If you need to use a username and password ini_set("username","firstname.lastname@example.org"); ini_set("password","mypassword"); $to = "email@example.com"; $subject = "My subject"; $txt = "Hello world!"; $headers = "From: firstname.lastname@example.org" . "\r\n" . "CC: email@example.com"; mail($to,$subject,$txt,$headers); ?>
Thanks fobos :) im going to try it now.