Post by travis_farmer » Tue Apr 02, 2024 5:12 pm

my SMTP server uses IP-based auth (must connect within the subnet), and so there is no login, but i want to use my SMTP server in order to use the DKIM config.
if i set it to PHP-based mail, it sends to my domain fine, but i need it to send through my SMTP server.

so how can i configure SMTP mail, without the username:password login info? i do have some knowledge of PHP, but apparently not enough to find the code needed to change...

Thanks in advance for any help.

User avatar
Newbie

Posts

Joined
Fri Mar 15, 2024 2:20 am


Post by ADD Creative » Tue Apr 02, 2024 7:29 pm

It would be helpful to post your OpenCart version. Assuming 4.0.x you will probably need to edit system/library/mail/smtp.php. Look for the 'AUTH LOGIN' part.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by travis_farmer » Wed Apr 03, 2024 1:00 am

sorry, v4.0.2.3
found the code, and it looks like not having a username and password is handled, except that it generates an error if not filled in. so i will comment out the error generation, and see what that does for me... and it works! Thank you very much! i will try and be more diligent next time and post better info, like the version number.

User avatar
Newbie

Posts

Joined
Fri Mar 15, 2024 2:20 am

Who is online

Users browsing this forum: No registered users and 14 guests