0

I am sending an email from Sandbox using apex code but email subject comes with some kind of ID. How to remove this ID and Sandbox . I have work around the email setting also but I could not find it. Please help me out this.

List<String> str = new List<String>{'deepak@test.com'};
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
mail.setToAddresses(str);
mail.setSubject('Demo');
mail.setHtmlBody('test');
Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });

enter image description here

2
  • 1
    Please post your apex code. Apr 11 '18 at 6:56
  • Hi @JannisBott , I have edited my post. Apr 11 '18 at 7:24