Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   Sending Emails through PHP (http://www.go4expert.com/forums/sending-emails-php-t13581/)

Bhullarz 5Sep2008 07:21

Sending Emails through PHP
 
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.

XXxxImmortalxxXX 5Sep2008 23:19

Re: Sending Emails through PHP
 
ill post the e-mail script i use for my domain in a hour or two okay

Bhullarz 7Sep2008 00:37

Re: Sending Emails through PHP
 
Quote:

Originally Posted by XXxxImmortalxxXX
ill post the e-mail script i use for my domain in a hour or two okay


I am waiting bro ! IT's been 2 days already.

XXxxImmortalxxXX 7Sep2008 01:04

Re: Sending Emails through PHP
 
yeah sry i had to reupload my webiste

Bhullarz 10Sep2008 21:32

Re: Sending Emails through PHP
 
Is there anyone else, who can provide the solution ?

pradeep 11Sep2008 01:39

Re: Sending Emails through PHP
 
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/packag...smtp.intro.php

Lucysmith 23Sep2008 11:36

Re: Sending Emails through PHP
 
goto w3schools.com, yu will find your answer there


All times are GMT +5.5. The time now is 07:26.