on-internet
← Community

How do I write a test class for Messaging.SingleEmailMessage apex class?

Stack Overflow ·

I have written the below Apex class that processes incoming email that are sent to an email service address and creates a new task from the incoming mail and then associates this new task with a matching record in salesforce. The match is done on the record name and incoming email subject. The class also sends an email notifying the "Assigned to" user that they have received a reply on a request they are working on. This works perfect in Sandbox but I have no experience writing test classes. Can anyone advise how I write the test class for the below? global class RequestEmailHandler implements

Comments

Sign in or sign up to comment and upvote.

No comments yet.