Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C CiviCRM Core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,374
    • Issues 1,374
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • CiviCRM Core
  • Issues
  • #114

Closed
Open
Created May 14, 2018 by thomas_SYSTOPIA@thomas_SYSTOPIA

Email-Invoices fails since 4.7.31 because of invalid From-Addresses

Reproduce:

  1. Enable Tax and Invoicing (in "CiviContribute Component Settings")
  2. Setup a From-Email-Adress
  3. Create a Contribution
  4. Use "Email Invoice" to send an Invoice.

You get: "Validation failed for: from-email-address"

The reason could be found in CRM/Contribute/Form/Task/Invoice.php[460:465]:

$fromEmail = CRM_Core_BAO_Email::getFromEmail();

// from email address
 if (isset($params['from_email_address'])) \{
 $fromEmailAddress = CRM_Utils_Array::value($params['from_email_address'], $fromEmail);
 }

The values of $fromEmail are html-escaped versions of the email-adresses. They might be useful for Select-Options in HTML-Forms. But they won't work for real email-headers.

Edited May 15, 2018 by thomas_SYSTOPIA
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking