Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 1 down vote accepted


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


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


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.