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 .. :*

Recommended Answers

All 3 Replies

Umm. Not sure where to begin but judging by the question, this seems like a good start: How Email Works

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","postmaster@mydomain.org");
ini_set("password","mypassword");


$to = "somebody@example.com";
$subject = "My subject";
$txt = "Hello world!";
$headers = "From: webmaster@example.com" . "\r\n" .
"CC: somebodyelse@example.com";
mail($to,$subject,$txt,$headers);
?>

Thanks fobos :) im going to try it now.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.