Jeff
Jeff

Reputation: 245

PHPMailer default SMTP settings

I am using PHPMailer.

I have the below given in the code

$mail = new PHPMailer();
$mail->From = '[email protected]';
$mail->FromName = 'From Name';
$mail->Subject = 'Subject';
$mail->Body = 'Body';

I am not using the below

$mail->SMTPAuth   = true;
$mail->Host       = "mail.yourdomain.com";
$mail->Port       = 25;                    
$mail->Username   = "yourname@yourdomain";
$mail->Password   = "yourpassword"; 

If I am not using the above (host, port, username, pwd, etc...), what will be my default smtp settings information?

Upvotes: 0

Views: 773

Answers (1)

Synchro
Synchro

Reputation: 37810

By default PHPMailer uses the mail() function, which does not need any SMTP-related settings, so none of those will be used.

Upvotes: 1

Related Questions