How do I specify which smtp server to use for this script?
Posted: Tue May 23, 2006 9:30 am
The server I'm trying to host this script on doesn't support smtp emails, therefore this script will simply take you to a thank you page without actually sending the email to the specified email address.
Can this be resolved by specifying which smtp server the script uses and if so, how do I do it?
hope you can help, thanks 
Can this be resolved by specifying which smtp server the script uses and if so, how do I do it?
Code: Select all
<?
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "myemailaddy@isp.com", "New Message!",
$message, "From: $email" );
header( "Location: thankyou.html" );
?>