Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Emails from wamp (no replies)

$
0
0
Hi I have a script on my site that sends e-mails, I have a test script that I will post on here that I use to see whether the e-mail function is working correctly, but it won't send the e-mails, how can I set wamp up to send them?

<?php
/*------------includes--------------*/
include ('../includes/connections.php');
include ('staff_brain_file.php');
include ('staff_style_top.php');
/*------------includes--------------*/
$u['my_email'] = "braidz_magrath@hotmail.com";
$_POST['email'] = "Brady, this is just an email to confirm the e-mail script is working correctly";
if(!mail($u['my_email'],"Test E-mail",$_POST['email'],"From: RC Newsletter <no-reply@site.com>" ))
{
echo "Email not sent to" . $u['my_email'] . "!<br/>";
}
include ('style_bottom.php');
?>

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>