Skip to content

Commit

Permalink
Adding the area's replyToEmailAddress to send outgoing chat history e…
Browse files Browse the repository at this point in the history
…mail's reply to address
  • Loading branch information
cention-mujibur-rahman committed Oct 27, 2014
1 parent 0305e6e commit 1d3dacd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/InternalChatProtocol.fe
Expand Up @@ -466,12 +466,12 @@ namespace ChatMCAM {
string htmlBody;
object message = new Mail.Message();
object text = new Mail.MessagePart();
object from = Workflow.Person.load( (session.user ? session.user.id : 0) );
object area = Workflow.Area.load(session.area.id);
array messages = Workflow.ChatMessage.listBySession( session.id );
message.header = new Mail.MessageHeader();
message.header.to.add(to_addr);
message.header.subject = I('Chat history');
message = MailUtilities.setOutgoingHeader(message, from.email.emailAddress);
message = MailUtilities.setOutgoingHeader(message, area.replyToEmailAddress);
messages.each() using ( content ) {
string sender = (content.user
? (content.user.chatName ? content.user.chatName : content.user.username)
Expand Down

0 comments on commit 1d3dacd

Please sign in to comment.