Skip to Content Skip to Menu

GJ Notifications from address problems

  • cpaschen
  • cpaschen
  • OFFLINE
  • Posts: 328
  • Thanks: 42
  • Karma: 9
11 years 4 months ago #229198 by cpaschen
GJ Notifications from address problems was created by cpaschen
I'm running into what appears to be a coding problem on GJ 2.7.0.

We're using secure configurations to send all outbound emails through our Amazon SES SMTP server. Because of this all outbound email must be set to an 'authroized' from address.

I've made the change in the Configuration | Notifications | Global | From Address, setting that to a confirmed address.

The problem is that when someone gets an invite now and if they reply to that email it goes back to the FROM address. It doesn't have a REPLY TO entry in the header of the email.

Although not all email clients use the reply-to (instead of the from) when replying, it would make it better if GJ's notifications at least had that info there for the compliant email systems.

Is there any way to get the outbound notifications sent with the user's address in the REPLY TO of the header (without hacking the GJ code)?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48419
  • Thanks: 8274
  • Karma: 1443
11 years 4 months ago - 11 years 4 months ago #229206 by krileon
Replied by krileon on topic GJ Notifications from address problems
Not a bug or anything, it just doesn't have replyto feature implemented. 99% users will never use it so it'd be unnecessary configuration overhead and confusion so it was not implemented. Those needing it for now will need to manually implement it. To manually implement it you'll need to make the below edit.

IN: /components/com_comprofiler/plugin/user/plug_cbgroupjive/cbgroupjive.class.php
ON: Lines 498 - 504
FROM:
Code:
if ( $plugin->params->get( 'notifications_from_name' ) ) { $fromName = $plugin->params->get( 'notifications_from_name' ); } if ( $plugin->params->get( 'notifications_from_address' ) ) { $fromEmail = $plugin->params->get( 'notifications_from_address' ); }
TO:
Code:
$orgFromName = $fromName; if ( $plugin->params->get( 'notifications_from_name' ) ) { $fromName = $plugin->params->get( 'notifications_from_name' ); } $orgFromEmail = $fromEmail; if ( $plugin->params->get( 'notifications_from_address' ) ) { $fromEmail = $plugin->params->get( 'notifications_from_address' ); }

ON: Lines 566 - 580
FROM:
Code:
if ( ( $notifyBy == 4 ) || ( $type == 4 ) ) { comprofilerMail( $fromEmail, $fromName, $toEmail, $subject, $message, 1 ); } elseif ( ( $notifyBy == 3 ) || ( $type == 3 ) ) { $_CB_PMS->sendPMSMSG( $toId, $fromId, $subject, $message, true ); } elseif ( ( $notifyBy == 2 ) || ( $type == 2 ) ) { $_CB_PMS->sendPMSMSG( $toId, $fromId, $subject, $message, true ); comprofilerMail( $fromEmail, $fromName, $toEmail, $subject, $message, 1 ); } elseif ( ( $notifyBy == 1 ) || ( $type == 1 ) ) { if ( ! $_CB_PMS->sendPMSMSG( $toId, $fromId, $subject, $message, true ) ) { comprofilerMail( $fromEmail, $fromName, $toEmail, $subject, $message, 1 ); } } } elseif ( $toEmail ) { comprofilerMail( $fromEmail, $fromName, $toEmail, $subject, $message, 1 );
TO:
Code:
if ( ( $notifyBy == 4 ) || ( $type == 4 ) ) { comprofilerMail( $fromEmail, $fromName, $toEmail, $subject, $message, 1, null, null. null, $orgFromEmail, $orgFromName ); } elseif ( ( $notifyBy == 3 ) || ( $type == 3 ) ) { $_CB_PMS->sendPMSMSG( $toId, $fromId, $subject, $message, true ); } elseif ( ( $notifyBy == 2 ) || ( $type == 2 ) ) { $_CB_PMS->sendPMSMSG( $toId, $fromId, $subject, $message, true ); comprofilerMail( $fromEmail, $fromName, $toEmail, $subject, $message, 1, null, null. null, $orgFromEmail, $orgFromName ); } elseif ( ( $notifyBy == 1 ) || ( $type == 1 ) ) { if ( ! $_CB_PMS->sendPMSMSG( $toId, $fromId, $subject, $message, true ) ) { comprofilerMail( $fromEmail, $fromName, $toEmail, $subject, $message, 1, null, null. null, $orgFromEmail, $orgFromName ); } } } elseif ( $toEmail ) { comprofilerMail( $fromEmail, $fromName, $toEmail, $subject, $message, 1, null, null. null, $orgFromEmail, $orgFromName );


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 11 years 4 months ago by krileon.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum