Gallery2 smtp auth errors [FIX]

Need help? Ask here.

Moderator: Moderators

Post Reply
sgrayban
Posts: 60
Joined: Wed Jul 12, 2006 9:53 am

Gallery2 smtp auth errors [FIX]

Post by sgrayban »

It looks like Gallery2, gallery.menalto.com, has a slight issue with smtp EHLO so here is a little fix to help you out.

Edit lib/smtp/smtp.php and find....

fputs($socket, "EHLO " . $config['smtp.host'] . "\r\n");

It's on line 82 for me. You will need to change that too...

fputs($socket, "EHLO " . 'MY-DOMAIN-NAME.TLD' . "\r\n");

Where MY-DOMAIN-NAME.TLD would be 'rollernet.us' as an example.

And there doesn't seem to be any fix for this in all the gallery2 searching I have done. So you will need to edit this file each time you update the Gallery2 code.
Post Reply