hi i was trying the following to invite the list of contacts from gmail.

$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">

but i got the following error:
Warning: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at &quot;localhost&quot; port 25, verify your &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use ini_set() in D:\wamp\www\invite\inviteList.php on line 9

Recommended Answers

All 2 Replies

Wamp does not have an email service installed. I think you could install Mercury.

sorry!!! Mercury??

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.