# SMTP Settings seems to be ignored

Hello,

i installed the latest version 3.0.12 on my webserver (LAMP with php 5.4) and everything works fine. Instead of using the local mail-server on the machine, I want to use an external SMTP Server for sending mails. So I added the following lines to config.php

define(“PHPMAILERHOST”,‘mymailserver.de’);
\$phpmailer_smtpuser = ‘info@mymailserver.de’;
define(‘PHPMAILERPORT’,25);
define(‘SMTP_TIMEOUT’,5);

But the system will still send the mails via the local mail(). What did I wrong?

Thanks!

Did you add this line or amend the existing line?

A specific constant can be defined only once, subsequent defines of that constant are ignored.

Many Thanks, indeed there was a define(“PHPMAILERHOST”,’’); some lines above

Now it works perfect!

1 Like