Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Armaz Mellati
Blank Reply-to in Mailings list (Message board)
November 18, 2009 10:20 AM
Answer

Armaz Mellati

Rank: Junior Member

Posts: 87

Join Date: October 30, 2009

Recent Posts

Hi there

I have spent several houres to find out how to make this work, without any success.
All subscribed users get a notification e-mail, but the reply-to field is ALLWAYS blank. Therefor they can't reply.

some mail klients doesn't bother about that like gmail. When trying to reply, the from-field is used. But Thunderbird doesn't work with a reply-to sett to blank.

Is there anything I am missing or is this really a BUG ?

I am using standard Liferay 5.2.3 on tomcat.

Regards,
Armaz
Lisa Simpson
RE: Blank Reply-to in Mailings list (Message board)
November 18, 2009 1:20 PM
Answer

Lisa Simpson

Rank: Liferay Legend

Posts: 2034

Join Date: March 5, 2009

Recent Posts

That's not a problem that we've seen. Do you other email things work ok or do they have a blank subject too?
Armaz Mellati
RE: Blank Reply-to in Mailings list (Message board)
November 20, 2009 4:14 AM
Answer

Armaz Mellati

Rank: Junior Member

Posts: 87

Join Date: October 30, 2009

Recent Posts

Thanks for your respons

Yes, everything else works perfectly. The subject and from field are all there.
I wonder if there is something I have misconfigured. There are at least 3 different email adresses that can be supplied.

  1. Email address right below "Active chackbox"
  2. Email address under the "outgoing tab"
  3. Address under the "Email From" tab in the message boards Configuration


I have sett the same e-mail address for them all. Can that be the problem ?

Regards,
Armaz
Lisa Simpson
RE: Blank Reply-to in Mailings list (Message board)
November 20, 2009 10:10 PM
Answer

Lisa Simpson

Rank: Liferay Legend

Posts: 2034

Join Date: March 5, 2009

Recent Posts

It shouldn't be the problem. Check your email templates.
Medha Sutaria
RE: Blank Reply-to in Mailings list (Message board)
December 2, 2009 2:31 AM
Answer

Medha Sutaria

Rank: Junior Member

Posts: 31

Join Date: August 11, 2008

Recent Posts

We face the same problem. The replyTo and sendTo fields for message board notification email are empty. Whereas the wiki notification emails are fine. Tried to get help from email template -
com\liferay\portlet\messageboards\dependencies\email_message_added_signature.tmpl
but no help
Armaz Mellati
RE: Blank Reply-to in Mailings list (Message board)
December 4, 2009 6:06 AM
Answer

Armaz Mellati

Rank: Junior Member

Posts: 87

Join Date: October 30, 2009

Recent Posts

After several hours of debugging the Code, I have ended here in "com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl"

 1
 2        String mailingListAddress = StringPool.BLANK;
 3
 4        if (PropsValues.POP_SERVER_NOTIFICATIONS_ENABLED) {
 5            mailingListAddress = MBUtil.getMailingListAddress(
 6                message.getGroupId(), message.getCategoryId(),
 7                message.getMessageId(), company.getMx(), fromAddress);
 8        }
 9
10        String replyToAddress = mailingListAddress;


Since "PropsValues.POP_SERVER_NOTIFICATIONS_ENABLED" is always false, the replyToAddress becomes blank.
I tried to change PropsValues.POP_SERVER_NOTIFICATIONS_ENABLED to true by this this line in portal-ext.properties, but it didn't help much.

1pop.server.notifications.enabled=true;


So please if anyone cat cast some light on how is this supposed to work ? Can't believe that this works for anybody at all.

PS! I am now using the latest code from the trunk (5.3).

Regards,
Armaz
Medha Sutaria
RE: Blank Reply-to in Mailings list (Message board)
December 4, 2009 7:29 AM
Answer

Medha Sutaria

Rank: Junior Member

Posts: 31

Join Date: August 11, 2008

Recent Posts

Armaz Mellati:

 1javascript:;
 2        String mailingListAddress = StringPool.BLANK;
 3
 4        if (PropsValues.POP_SERVER_NOTIFICATIONS_ENABLED) {
 5            mailingListAddress = MBUtil.getMailingListAddress(
 6                message.getGroupId(), message.getCategoryId(),
 7                message.getMessageId(), company.getMx(), fromAddress);
 8        }
 9
10        String replyToAddress = mailingListAddress;


Yeah, I saw the same problem. Do you think the code has a bug? Shouldn't it be this -
1String replyToAddress = fromAddress;

instead of this -
1String replyToAddress = mailingListAddress;
Armaz Mellati
RE: Blank Reply-to in Mailings list (Message board)
December 4, 2009 8:03 AM
Answer

Armaz Mellati

Rank: Junior Member

Posts: 87

Join Date: October 30, 2009

Recent Posts

Medha Sutaria:


Yeah, I saw the same problem. Do you think the code has a bug? Shouldn't it be this -
1String replyToAddress = fromAddress;

instead of this -
1String replyToAddress = mailingListAddress;


Well, no, actually, it should be mailingListAddress, because the from-address can be what ever you want it to be. The mail should be returned to the mailing-list in order to be read by the Message-board. But the problem here is that they sett it to Blank. That is the worst thing they can do. If it was sett to NULL, the mail client would automatically reply to the from-address.

I managed to sett the PropsValues.POP_SERVER_NOTIFICATIONS_ENABLED to true. Guess what happened. The replyto was then sett to the messageID, something like this : "mb.10401.11002@events.liferay.com"

So, a quick fix would be setting it to null or as you suggest, to "fromAddress". But I hope some developers would go some deeper and get the mailingListAddress right.

I will try to report this as a bug.
geetha rani
RE: Blank Reply-to in Mailings list (Message board)
February 15, 2012 12:25 AM
Answer

geetha rani

Rank: New Member

Posts: 14

Join Date: February 2, 2012

Recent Posts

I have the same issue,when the user create the new thread or give the reply on the thread the mail not sending to the thread created user, the mail sending to the mailling list address, but i need to send the mail when the user give the reply means the thread created person need to get the email please any one guide me how can i change the code in which file
Sergio Cabrera
RE: Blank Reply-to in Mailings list (Message board)
December 6, 2012 2:52 AM
Answer

Sergio Cabrera

Rank: Junior Member

Posts: 68

Join Date: December 19, 2011

Recent Posts

I had the same problem. Perhaps this can be useful for you.

Verify that all destination addresses are valid. If one of them is not valid you get an exception and no mail is delivered.
Tarkan Corak
RE: Blank Reply-to in Mailings list (Message board)
May 12, 2013 3:11 AM
Answer

Tarkan Corak

Rank: Regular Member

Posts: 140

Join Date: October 7, 2008

Recent Posts

Shouldn't "reply-to" be set to something like 'noreply@yourdomain.tld' when mailingListAddress is empty?
I'm currently looking for a clean solution to hook MBMessageLocalService.notifySubscribers without duplicating the whole code.