Forums

Unable to send by SMTP - can we specify no authentication?

bon-ja-mon 04 Apr, 2016
Hi guys

I am trying to send emails from CF5 but cant. I have set up the email settings in the Settings for CF5 as I can see more debug on what is happening and see the following in the list of debug text:

SMTP ERROR: AUTH command failed: 504 5.7.4 Unrecognized authentication type


Our network is set for no authentication, but uses TLS for security. I cant see within the Settings for CF5 where I can specify to use Authentication or not and I wonder if this has something to do with the reason?

I have tried removing all the details from Settings in CF5 and I understand this should default back to using the ones on Joomla config, however if I do that I get the message:

Mailer Error: SMTP connect() failed.

2016-04-04 13:46:18 Connection: opening to :25, t=10, opt=array ( ) 2016-04-04 13:46:18 SMTP ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed: Name or service not known (0) 2016-04-04 13:46:18 SMTP connect() failed. 


even though I have put in the IP address for the host in the Joomla config.It is as if CF5 isnt defaulting back to the Joomla settings even though I deleted the settings??

Thanks
GreyHead 04 Apr, 2016
Hi bon-ja-mon,

You can possibly hack the code to set the Authentication to none. Try editing /libraries/cegcore/libs/mailer.php and around line 66 add this
$mail->SMTPAuth   = false;   


Without the settings it should revert back to use those set in the Site Global Configuration > Server tab. You can test those with the new User registration, or with a Mail a Friend link from an article.

Bob
bon-ja-mon 05 Apr, 2016
Thanks Bob. In the end using a combination of entering some of the email settings to the CF settings screen and some to the Joomla screen seemed to make it work - very weird.

As it is now working I dont want to touch it for fear of breaking it !
This topic is locked and no more replies can be posted.