Answers.Body: <p>The template to edit is the one called "Cases - Send Copy of an Activity" under Administer - CiviMail- Message templates and then click the System Workflow tab. The name is historical - it isn't just for cases.</p>
  
  <p>But it seems like it's not currently possible to get the With Contact information since even the activity id is not available in the template. There is minimal data to work with.</p>
  
  <p>You could do this by customizing CRM_Case_BAO_Case::sendActivityCopy() to include more information. I could see that being useful as a core improvement, to at least include the activity id and related contact ids.</p>
  
  <p>Note that it's possible to have multiple With Contact's on an activity, so if there's more than one you'd need to handle that.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-23T06:30:22.867Z
Answers.Text: The information you submitted was not a solution.
  
  I entered Create New> Individual and saved a contact information.
  
  I'm creating an activity record for Avtivity> Phone Call for this person. When creating a record, I'm adding a person who doesn't have access to CRM in the assigned section.
  
  The activity record I've added to the person I've added is sent by mail as in the photo. The contact information is added to the photo. What I want is to automatically fill in or select this information.
Answers.UserDisplayName: Fatih ATEŞ
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-22T18:14:44.840Z
Answers.LastActivityDate: 2019-02-23T23:02:48.827Z
Answers.LastEditDate: 2019-02-23T23:02:48.827Z
Answers.UserDisplayName: Demerit
Answers.Body: <p>What I want is getting the target user information in the mail template. For example :<br>
  If I do contact.phone I will get the sender phone and not the selecterd user phone.<br>
  Something like selectedUser.phone or the email.<br></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-23T22:54:14.877Z
Answers.Text: I see. I'm going to edit your original question to make it clearer.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-24T00:05:03.757Z
Answers.Text: I have found a side road solution. I have get with Jquery the phone number and the email of the selected user (I have done this with Json and parsed ) and set it to the location field. "Location" field name is changed to " contact ". But I am afraid that the new update will remove my code :(. Is there any permanent solution that fits my problem ?
Answers.UserDisplayName: Fatih ATEŞ
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-23T20:57:49.390Z
Answers.LastActivityDate: 2019-02-23T20:57:49.390Z
Answers.UserDisplayName: Fatih ATEŞ
Body: <p>In any activity that I create, I want to include the With Contact's Phone and Email address in the email that goes to the assignee. I can't do this right now and I need to enter the information manually.<br></p>
  
  <p>Why do I need this? When I assign the activity to any person, that person might not have access to CiviCRM to look up the info. I don't want to enter the data manually. This is a serious waste of time.<br></p>
  
  <p>An example of what I want to do is in the following diagram.<br></p>
  
  <p><a href="https://kvk.cagrikaydi.net/images/-001307.png" rel="nofollow noreferrer"><img src="https://kvk.cagrikaydi.net/images/-001307.png" alt="enter image description here"></a></p>
  
Tags: <civimail><joomla><civicrm-home>
Title: How do I add the With Contact information to the email that gets sent to activity assignees?
ThreadText: # How do I add the With Contact information to the email that gets sent to activity assignees?
  
  (Asked by: username_0 on 2019-02-22)
  
  In any activity that I create, I want to include the With Contact's Phone and Email address in the email that goes to the assignee. I can't do this right now and I need to enter the information manually.
  
  Why do I need this? When I assign the activity to any person, that person might not have access to CiviCRM to look up the info. I don't want to enter the data manually. This is a serious waste of time.
  
  An example of what I want to do is in the following diagram.
  
  [![enter image description here](https://kvk.cagrikaydi.net/images/-001307.png)](https://kvk.cagrikaydi.net/images/-001307.png)
  
  **Tags:** civimail, joomla, civicrm-home
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2019-02-22. Score: 1
  
  The template to edit is the one called "Cases - Send Copy of an Activity" under Administer - CiviMail- Message templates and then click the System Workflow tab. The name is historical - it isn't just for cases.
  
  But it seems like it's not currently possible to get the With Contact information since even the activity id is not available in the template. There is minimal data to work with.
  
  You could do this by customizing CRM\_Case\_BAO\_Case::sendActivityCopy() to include more information. I could see that being useful as a core improvement, to at least include the activity id and related contact ids.
  
  Note that it's possible to have multiple With Contact's on an activity, so if there's more than one you'd need to handle that.
  
  > **Comments:**
  > **username_0**: The information you submitted was not a solution.  I entered Create New> Individual and saved a contact information.  I'm creating an activity record for Avtivity> Phone Call for this person. When creating a record, I'm adding a person who doesn't have access to CRM in the assigned section.  The activity record I've added to the person I've added is sent by mail as in the photo. The contact information is added to the photo. What I want is to automatically fill in or select this information.  
  
  ---
  
  ### Answer by username_0 on 2019-02-23. Score: 0
  
  What I want is getting the target user information in the mail template. For example :  
  If I do contact.phone I will get the sender phone and not the selecterd user phone.  
  Something like selectedUser.phone or the email.
  
  > **Comments:**
  > **username_1**: I see. I'm going to edit your original question to make it clearer.  
  > **username_0**: I have found a side road solution. I have get with Jquery the phone number and the email of the selected user (I have done this with Json and parsed ) and set it to the location field. "Location" field name is changed to " contact ". But I am afraid that the new update will remove my code :(. Is there any permanent solution that fits my problem ?  
  
  ---
  
  