You need to sign in to do that
Don't have an account?
Carol Walgenwitt
Execute an Apex Class
I am working on the exercice in Navigate and Edit Source Code - I ccreated the Apex Class and was trying to execute using - Debug | Open Execute Anonymous Window. as per the instructions - I put in my email address and clicked execute but I do not get any email response showing my execute worked - What did I do wrong? I attached screen shots of my code . Thank you
On Developer Console Execute anonymous window, you can select option to open debug log. In Debug logs, you can check any errors or verify if your sucessful email debug statment has been printed.
I'm assuming you are testing this call by running code something like this:
EmailMissonSpecialist v_EmailClass = new EmailMissonSpecialist();
v_EmailClass.senEmail('Carol.Walgenwitt@test.com', 'Test Email Subject', 'Test Email Body');
Thanks
You must execute by providing the required parameters:- If still, you are not getting email please debug each step.
Please mark it as Best Answer if it helps you.
Thanks & Regards
Suraj Tripathi
try once again with following Instruction.
1.) open your developer console simply Ctrl + E Or Debug tab => Open excute anoymswindw. and run following code. I think this time It should be worked.
let me know if it helps you by marking it as best answer.
Thank you
Your code is perfect,
Please check you email Deliverability:- Access level should be All email
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh