Hello I'm unable to use SMTP setting for mail connection. On the front end my subscription form will complain of the following error when trying to subscribe:

You are now subscribed!

Error sending message Please confirm your subscription to email@example.com SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

In the back end under the configuration settings for ACYMAIL extension I get the following error when I try to test my SMTP connection and sending to myself:

-
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

2024-03-29 16:25:23 CLIENT -> SERVER: EHLO subdomain.site.com

2024-03-29 16:25:23 CLIENT -> SERVER: STARTTLS

2024-03-29 16:25:23 CLIENT -> SERVER: EHLO subdomain.site.com

2024-03-29 16:25:23 CLIENT -> SERVER: AUTH CRAM-MD5

2024-03-29 16:25:23 CLIENT -> SERVER: [credentials hidden]

2024-03-29 16:25:23 SMTP ERROR: Username command failed: 535 5.7.8 Sorry.

2024-03-29 16:25:23 CLIENT -> SERVER: QUIT

No errors when checking what ports I can use, all are green. Using 2525 per recommendations of SMTP provider. SMTP.com.
I'm not sure what the problem could be. I have successfully sent via this method in the past and not sure why it stopped working. I'm also using the same SMTP settings/connection for the Joomla mail settings and confirmed that I can successfully send a test message through it. So I know that the SMTP account settings/credentials are correct, since that is working. I'm running PHP 8.1, ACYMAIL starter 9.4.1 & Joomla 4.3.2.

I'm hoping someone has encountered this issue and knows of the solution. Thanks in advance!

Hi,

The smtp error 535 5.7.8 means that the combination of username and password is not accepted by the smtp server. Please check your credentials. In case the issue persists you need to contact your smtp provider and ask them what's going on.

  • rjrs replied to this.
    18 days later

    jvstratum

    Thanks for responding so quickly. After taking another look I was able to work around the issue. Responding to let you know that it turned out to be the password I'm using and how it is being saved. It appears to be getting truncated before being saved into the database thus causing sending email to fail with the above error message. Either the hash # or less than < symbol character in the password string appear to be tripping it up, resulting in the whole password not being saved. I found where the password is saved into the database and entered it directly there to get around this issue for now.

    I'm glad you were able to resolve your issue. Enyou your Acymailing.