• Nivi
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hello All,
I have written a code for sending email through APEX. 
I am using a custom field for saving original Email address from Email field of Contact object. And masking the original Email. So my original email field value is 'DuXXX@XXXXX.XXX' and Custom is like 'Dummy@gmail.com'. 
When i am sending the email using Messaging.SingleEmailMessage() API the when i receive email in 'to address' ther are both the values (from custom email field and standard one.) 
How can i remove the standard one from there as i have only added 1 value from custom field in code.
Or it is standard salesforce behaviour.

Thanks,
Nivedita 
  • July 03, 2019
  • Like
  • 0
Hello All,
I have written a code for sending email through APEX. 
I am using a custom field for saving original Email address from Email field of Contact object. And masking the original Email. So my original email field value is 'DuXXX@XXXXX.XXX' and Custom is like 'Dummy@gmail.com'. 
When i am sending the email using Messaging.SingleEmailMessage() API the when i receive email in 'to address' ther are both the values (from custom email field and standard one.) 
How can i remove the standard one from there as i have only added 1 value from custom field in code.
Or it is standard salesforce behaviour.

Thanks,
Nivedita 
  • July 03, 2019
  • Like
  • 0