• raghavendra vemula 1
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 2
    Questions
  • 0
    Replies
I created the sendEmail class as was able to send/receive the email as the instructions indicated. However, under the section "Call Static Method" I ran into an error. 

This instructions read: 
          " In the Developer Console, find the open tab for the EmailManager class and modify the first line of the sendMail() method definition to the following (the only change is the added static keyword.)
 
                   public static void sendMail(String address, String subject, String body) {

                   Save the class by pressing Ctrl+S.  "

When I try to save, I get: 
FIELD_INTEGRITY_ERROR: 
Failed to create createContainerMember for containerId=undefined: null is not a valid containerId.

Here are the first few lines of the class (with the addition of the word 'static' per instructions)

public class EmailManager {

    // Public method
    public static void sendMail(String address, String subject, String body) {
        // Create an email message object.....

Further, the page is now in a perminant 'saving' mode under the file menu.   Thanks for any help.