3
Contributors
3
Replies
9
Views
5 Years
Discussion Span
Last Post by jersie03
0

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);
?>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.