• Sanchit Singhal
  • NEWBIE
  • 0 Points
  • Member since 2010

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

Very strange. I'm developing a trigger that sends me an email, and I have been debugging it by monitoring myself in the Debug. Now (this is really weird), suddenly, after running my trigger and deleting the accumulated logs, I am no longer able to monitor myself!! I am able to add any other user in the system, except myself.

 

Could I have hit some kind of limit?

 

Hello community,

 

Does anyone know if its possible or how to create a Email address for a Email service programatically?

 

Thanks,

Gaston.

   Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();

    String[] toAddresses = new String[] {'bhagchand.manshani@infostretch.com'};
      mail.setToAddresses(toAddresses);
      mail.setSubject('Qmetry Instance Already Exist......');
        mail.setUseSignature(false);
           String Msg='Here are the Following Details';                                                                                  
             mail.setHtmlBody(Msg);
              System.debug('Final Message '+msg);                 
              Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });

 

 

// Email Part End Here

  // Trigger.old[0].addError('metry Instance Already Exist flag value.');      // Not Working

   //lead.Company.addError('Qmetry Instance Already Exist flag value ....... ');                            // Not Working

  // Trigger.oldMap.get(lead.Company).addError('metry Instance Already Exist flag value.'); // Not Working

 

Please Help Thanks in Adv.