maternal
Welcome, Guest. Please login or register.
Did you miss your activation email?

 
Advanced search

22745 Posts in 6703 Topics- by 17593 Members - Latest Member: permsk

12-11-2019 03:14:56
JOOM::GALLERY::FORUMJoomGallery 2.x ACLBackend / AdministrationChange "From" address in notification emails DMARC
Pages: [1]
Print
Author Topic: Change "From" address in notification emails DMARC  (Read 2209 times)
0 Members and 1 Guest are viewing this topic.
bcraigie
Newbie
*
Offline Offline

Posts: 6


View Profile
« on: 07-10-2014 23:19:18 »

Hi all,

Yahoo have just changed their policies and now reject emails "from" a yahoo user if it was not sent via the yahoo email servers.  Google are also rejecting yahoo emails likewise.  It's something called DMARC.

This means that the "image uploaded" notification emails that JG sends out "From" the user who did the upload are now bouncing when the user has a yahoo email address.

I have looked, but can't see the configuration option to change the "from" address to be the website admin email address instead of the user.  This problem will affect everyone that has a JoomGallery installation.

Any clues?

Thanks,

Brian
Logged
bcraigie
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #1 on: 08-10-2014 00:41:13 »

OK, for a quick and nasty fix, I edited

Line 443 in components/com_joomgallery/helpers/messenger.php

change from

if(JUtility::sendMail($from, $fromname, $recipients, $this->_subject,  $this->_text) !== true)

to

if(JUtility::sendMail("webmaster@yoursite.com", "Your site name", $recipients, $this->_subject,  $this->_text,true,null,null,null,$from,$fromname) !== true)

This causes the email to be sent from "webmaster@yoursite.com" (change this to your own setting) and "Your site name" (change to yours) and the original sender is now in the reply-to.

This is only a quick fix until the developers can give a proper fix without hardcoding the from address and from name.

Hope that helps anyone else with this problem.

This is for JoomGallery 2.1.4 (not sure if the same line number in 2.1.5)
Logged
Pages: [1]
Print
Jump to:  

HOSTED BY SCHWARZKÜNSTLER ®

PROTECTED BY  ZB BLOCK  AND Project Honey Pot
Theme orange-lt created by panic

Bad Behavior has blocked 5544 access attempts in the last 7 days.

maternal