Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can I send emails (with GMail) with PHPMailer?

I downloaded PHPMailer but it seems there is no documentation for it.

There is no class.phpmailer.php file inside that package. Where is that file ?

Would you please lead me to a solution this file issue?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Try:

$mail->Mailer = "smtp";  
$mail->Host = "ssl://smtp.gmail.com";  
$mail->Port = 465;  
$mail->SMTPAuth = true; // turn on SMTP authentication  
$mail->Username = "username@gmail.com"; // SMTP username  
$mail->Password = "password"; // SMTP password  

From: http://mediakey.dk/~cc/send-email-using-php-phpmailer-and-gmail/

share|improve this answer
    
hello - did u see my question ? there is no class.phpmailer.php inside the downloaded file ! it seems we should call that file before using/ –  MoonLight Feb 4 '11 at 13:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.