hi i was trying the following to invite the list of contacts from gmail.
<html>
<body>
<?php
if(isset($_POST['submit']))
{
$email = 'https://mail.google.com/mail/feed/atom';
$sender = 'abc@gmail.com';
$send = mail($email, "Invitation", "Testing e-mail", "From: $sender");
echo $send;
}
?>
<form action='inviteList.php' method='post'>
<font>Invite your friends</font><br><br>
<font><b>Email: </b> <input type='text' name='email' size='30'><br>
<input type='submit' value='Invite' name="submit">
</form>
</body>
</html>
but i got the following error:Warning: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\wamp\www\invite\inviteList.php on line 9