Hi all ! I need help in sending emails through PHP. I want to send email to my website users. I have got the email id of all the users in MySQL table. I am retrieving those one by one. But the problem is Mail function of PHP is not sending mails to the users. Code: mail("Users' Email","subject of mail","content of mail","From:my email address"); I am using a free webhost which has enabled the php mail function for free users. kindly guide me DO i need to setup anything extra for using this function. ? How can I use my GOOGLE account to sending mails through PHP ? Thanks in advance.
You'll need to use SMTP to send email to people using your GMail id. Check out this PEAR Package Net_SMTP http://pear.php.net/manual/en/package.networking.net-smtp.intro.php