You need to sign in to do that
Don't have an account?
Creating an Apex Class
Error
Step not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing: System.EmailException: SendEmail failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Either the plain text body or html body must be supplied.: []
Note: you may run into errors if you've skipped previous steps.
Step not yet complete... here's what's wrong:
There was an unexpected error in your org which is preventing this assessment check from completing: System.EmailException: SendEmail failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Either the plain text body or html body must be supplied.: []
Note: you may run into errors if you've skipped previous steps.
You need to supply body to your email message.
setPlainTextBody(plainTextBody)Optional. The text version of the email, specified by the sender. You must specify a value for setTemplateId, setHtmlBody, orsetPlainTextBody. Or, you can define both setHtmlBody and setPlainTextBody.Signature
public Void setPlainTextBody(String plainTextBody)
Parameters
plainTextBody
Type: String
Return Value
Type: Void
See Example : http://www.salesforcetutorial.com/sending-emails-singleemailmessage/
Read this fro more : https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_email_outbound_single.htm
Basically, i added the following code to the sendMail function: And when I run the "Verify Step" function I got the following output in my log: "DEBUG|null | null | null"
Their test code isn't providing any values to "EmailManager.sendMail" method.
I suggest that anybody facing this issue simply move on to other steps and later come back to this one and try to verify it again. Hopefully the Salesforce team will solve this issue by then.