开发者

Sending email through smtp server [duplicate]

This question already has answers here: Closed 11 years ago.

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜