PHP SMTP settings


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 = ''; $mail->Port = 587; $mail->Username = ''; $mail->Password = 'mypassword';

Thanks for helping!!