PHP SMTP settings


#1

Hi

I want to send email with phpmailer.
I think the best way is the SMTP.

I try to search the correct setting, but dont found the working settings :slight_smile:

(domain and MX hosted in DreamHost)

Please help me to correct this code snippet.

$mail->IsSMTP(); $mail->SMTPDebug = 1; $mail->SMTPAuth = true; $mail->SMTPSecure = 'TLS'; $mail->Host = 'smtp.dreamhost.com'; $mail->Port = 587; $mail->Username = 'info@mydomain.com'; $mail->Password = 'mypassword';

Thanks for helping!!