掲示板

Blank Reply-to in Mailings list (Message board)

thumbnail
14年前 に Armaz Mellati によって更新されました。

Blank Reply-to in Mailings list (Message board)

Junior Member 投稿: 96 参加年月日: 09/10/30 最新の投稿
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
thumbnail
14年前 に Lisa Simpson によって更新されました。

RE: Blank Reply-to in Mailings list (Message board)

Liferay Legend 投稿: 2034 参加年月日: 09/03/05 最新の投稿
That's not a problem that we've seen. Do you other email things work ok or do they have a blank subject too?
thumbnail
14年前 に Armaz Mellati によって更新されました。

RE: Blank Reply-to in Mailings list (Message board)

Junior Member 投稿: 96 参加年月日: 09/10/30 最新の投稿
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.

  • Email address right below "Active chackbox"
  • Email address under the "outgoing tab"
  • 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
thumbnail
14年前 に Lisa Simpson によって更新されました。

RE: Blank Reply-to in Mailings list (Message board)

Liferay Legend 投稿: 2034 参加年月日: 09/03/05 最新の投稿
It shouldn't be the problem. Check your email templates.
14年前 に Medha Sutaria によって更新されました。

RE: Blank Reply-to in Mailings list (Message board)

Junior Member 投稿: 31 参加年月日: 08/08/11 最新の投稿
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
thumbnail
14年前 に Armaz Mellati によって更新されました。

RE: Blank Reply-to in Mailings list (Message board)

Junior Member 投稿: 96 参加年月日: 09/10/30 最新の投稿
After several hours of debugging the Code, I have ended here in "com.liferay.portlet.messageboards.service.impl.MBMessageLocalServiceImpl"


		String mailingListAddress = StringPool.BLANK;

		if (PropsValues.POP_SERVER_NOTIFICATIONS_ENABLED) {
			mailingListAddress = MBUtil.getMailingListAddress(
				message.getGroupId(), message.getCategoryId(),
				message.getMessageId(), company.getMx(), fromAddress);
		}

		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.

pop.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
14年前 に Medha Sutaria によって更新されました。

RE: Blank Reply-to in Mailings list (Message board)

Junior Member 投稿: 31 参加年月日: 08/08/11 最新の投稿
Armaz Mellati:

javascript:;
		String mailingListAddress = StringPool.BLANK;

		if (PropsValues.POP_SERVER_NOTIFICATIONS_ENABLED) {
			mailingListAddress = MBUtil.getMailingListAddress(
				message.getGroupId(), message.getCategoryId(),
				message.getMessageId(), company.getMx(), fromAddress);
		}

		String replyToAddress = mailingListAddress;


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

instead of this -
String replyToAddress = mailingListAddress;
thumbnail
14年前 に Armaz Mellati によって更新されました。

RE: Blank Reply-to in Mailings list (Message board)

Junior Member 投稿: 96 参加年月日: 09/10/30 最新の投稿
Medha Sutaria:


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

instead of this -
String 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.
12年前 に geetha rani によって更新されました。

RE: Blank Reply-to in Mailings list (Message board)

New Member 投稿: 13 参加年月日: 12/02/02 最新の投稿
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
thumbnail
11年前 に Sergio Cabrera によって更新されました。

RE: Blank Reply-to in Mailings list (Message board)

Junior Member 投稿: 68 参加年月日: 11/12/19 最新の投稿
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.
10年前 に Tarkan Corak によって更新されました。

RE: Blank Reply-to in Mailings list (Message board)

Regular Member 投稿: 141 参加年月日: 08/10/07 最新の投稿
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.