Sign up ×
Server Fault is a question and answer site for 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


$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.