Answers.Body: <p>You could create a custom token to do the calculation and use the token in your mail.  See eg <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Customized+%28and+Custom%29+Tokens" rel="nofollow noreferrer">https://wiki.civicrm.org/confluence/display/CRMDOC/Customized+%28and+Custom%29+Tokens</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-22T08:26:26.687Z
Answers.LastActivityDate: 2017-11-22T08:26:26.687Z
Answers.UserDisplayName: Aidan
Body: <p>I want to add some information on a mail which is in fact calculated based on existing fields. More specifically, I want to send a mail to all members with an expired membership. In the mail I want to add (what we call in Belgium) a structured message which is in my case "membershipID &amp; (membershipID mod 97)". What is the best way to accomplish this?</p>
  
Tags: <civimember>
Title: Calculated field on mail
ThreadText: # Calculated field on mail
  
  (Asked by: username_0 on 2017-11-22)
  
  I want to add some information on a mail which is in fact calculated based on existing fields. More specifically, I want to send a mail to all members with an expired membership. In the mail I want to add (what we call in Belgium) a structured message which is in my case "membershipID & (membershipID mod 97)". What is the best way to accomplish this?
  
  **Tags:** civimember
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-11-22. Score: 1
  
  You could create a custom token to do the calculation and use the token in your mail. See eg <https://wiki.civicrm.org/confluence/display/CRMDOC/Customized+%28and+Custom%29+Tokens>
  
  
  ---
  
  