I just switched a CiviCRM installation over to Amazon AWS's SES email service, which will ONLY send our from verified domain email addresses. The CiviMail forward-to-a-friend link form assumes the email can come from the sender's address. (And this is all a bit of a security concern regarding misuse of an email server, too.)

No matter what I do, the form returns the error "Mailing is not forwarded to the given email address."

The version of the form which "ships" with CiviCRM does not allow for the from email address to be changed anywhere, and does not seem to include the Display Name of a sender.

  1. I attempted to edit ForwardMailing.php to use the server's default email address as the from address (hard coded; better if could be system variable); I think perhaps I only have it displaying that address but it still is trying to use the recipient's address
 if ($hash) {
      $emailId = CRM_Core_DAO::getfieldValue('CRM_Mailing_Event_DAO_Queue', $hash, 'email_id', 'hash');
      $this->_fromEmail = 'ouraddress@AWSverifiedexampledomain.org';
    //$fromEmail = CRM_Core_DAO::getfieldValue('CRM_Core_DAO_Email', $emailId, 'email');
      $this->assign('fromEmail', $fromEmail);
  1. I would like it to show as sent by our server "on behalf of Display Name " and then in the text say that "DisplayName is forwarding you this email."
  2. Is there a way to have the optional comment fields expanded by default on the form? They are not very obvious to most users.

Thanks in advance.

  • Did you work this out? I'm trying to do the same thing (ask our list to reach out to their lists for an event). – kathc Feb 4 at 20:25
  • No. It remains on my to-do list, I'm afraid. The limitations on the from address with SES has been very frustrating. Rears it's head when least expected. – TimETown Feb 5 at 22:42
  • @TimETown There's an extension called "Outbound Domain Enforcement" that help Civi not send with an unvalidated domain. @ kathc to be clear, you won't have the problem TimETown is describing if you don't use a third-party mailing company that requires validating outbound email domains. – Jon G - Megaphone Tech Feb 7 at 4:05
  • We're talking about using the {action.forward} which asks people we're sending email to, to send it on (but tell us about it).It doesn't work with SES or Sparkpost. I found some very old message about changing the forwarding behaviour to make it show the forwarder's name and email but actually use the original sender. For my immediate use, I'll just ask people to forward our registration message and hope that works to get people to our event (it just won't show us who invited them). – kathc Feb 8 at 13:38
  • This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. - From Review – Jon G - Megaphone Tech Feb 11 at 15:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.