• Marc Vanderstraeten
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Hi there,
I'm using Salesforce.com for 2 months and I decided to learn Apex code to improve the efficiency of my programs. I've installed the Force.com IDE on Eclipse and everything was fine for my first program. In brief my second program is used to notify peoples about something. I've made a little test to see if sending emails works but it doesn't....

@isTest
private class MailTest {

    static testMethod void myUnitTest() {
       FNotifyContactChangedEmail.sendEmail();
    }
}


public class FNotifyContactChangedEmail{
    public static void sendEmail() {
        String[] toAddresses = new String[] {'exemple@exemple.ex','
exemple@exemple.ex'};
        Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
        Messaging.reserveSingleEmailCapacity(1);
        mail.setToAddresses(toAddresses);
        mail.setReplyTo('
exemple@exemple.ex');
        mail.setSenderDisplayName('Salesforce Notifications');
        mail.setSubject('A contact has been modified ');
        mail.setPlainTextBody('Test');
        Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
    }
}


That give me that error in the tab failures: Previous load of class failed: scout9|standardsheetlabelcontroller
And this in the log file :
|VARIABLE_SCOPE_BEGIN|[3]|toAddresses|LIST<String>|true|false
|VARIABLE_ASSIGNMENT|[3]|toAddresses|["exemple@exemple.ex","exemple@hotmail.ex"]|0x3095a4ae
|STATEMENT_EXECUTE|[4]
|FATAL_ERROR|Internal Salesforce.com Error
(1952023000)|CUMULATIVE_LIMIT_USAGE
[...]
Number of Email Invocations: 0 out of 10


Is there anything to configure in salesforce? Or something to implements in Eclipse ?

It would be great to have an answer to my question, I thank you in advance



Hi there,
I'm using Salesforce.com for 2 months and I decided to learn Apex code to improve the efficiency of my programs. I've installed the Force.com IDE on Eclipse and everything was fine for my first program. In brief my second program is used to notify peoples about something. I've made a little test to see if sending emails works but it doesn't....

@isTest
private class MailTest {

    static testMethod void myUnitTest() {
       FNotifyContactChangedEmail.sendEmail();
    }
}


public class FNotifyContactChangedEmail{
    public static void sendEmail() {
        String[] toAddresses = new String[] {'exemple@exemple.ex','
exemple@exemple.ex'};
        Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
        Messaging.reserveSingleEmailCapacity(1);
        mail.setToAddresses(toAddresses);
        mail.setReplyTo('
exemple@exemple.ex');
        mail.setSenderDisplayName('Salesforce Notifications');
        mail.setSubject('A contact has been modified ');
        mail.setPlainTextBody('Test');
        Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
    }
}


That give me that error in the tab failures: Previous load of class failed: scout9|standardsheetlabelcontroller
And this in the log file :
|VARIABLE_SCOPE_BEGIN|[3]|toAddresses|LIST<String>|true|false
|VARIABLE_ASSIGNMENT|[3]|toAddresses|["exemple@exemple.ex","exemple@hotmail.ex"]|0x3095a4ae
|STATEMENT_EXECUTE|[4]
|FATAL_ERROR|Internal Salesforce.com Error
(1952023000)|CUMULATIVE_LIMIT_USAGE
[...]
Number of Email Invocations: 0 out of 10


Is there anything to configure in salesforce? Or something to implements in Eclipse ?

It would be great to have an answer to my question, I thank you in advance