Possible Duplicate:
Sending email through Gmail SMTP using PHP
Hi,
I am working on a site, that uses mail() function of php to send emails. However the emails are not delivered properly as the server has got some problems. I want to use gm开发者_JAVA技巧ail server to send emails for this reason. How can i implement the php script to send emails using smtp server authentication? Also i have learnt that it uses pear package for email to send emails. How can I know that pear is installed on my remote server. The server doenot allow me to view php info()? Please help...
Send email using the GMail SMTP server from a PHP page
I think it will be helpful.
I use Pear Mail with SMTP is very easy, and you can see some examples
$_mailbox = Mail::factory('smtp', array(
'host' => 'smtp.gmail.com',
'auth' => FALSE,
'username' => 'username@gmail.com',
'password' => 'smtp_password',
'persist' => FALSE ));
Sorry i don'r read all question, you can't know if you have pear in server, why not send email or ticket to support ?
PHPMailer is a very good PHP library to send e-mails. You may just install the files into your own area, no administrator action is necessary.
精彩评论