• Lalit kumar 26
  • NEWBIE
  • 10 Points
  • Member since 2016

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

There is a lookup relationship between lead object and a custom object (client__c). On client__c object there is field called program_name__c. If lead is child object, is there any way to display or bind the program__c field on lead.
As of now i can only have the lookup relationship field of client__c on lead object.
Please guide, how can i do this.

Advance thanks  :)  
lalit kumar
public with sharing class EmailManager{

    public void sendMail(List<String> address, String subject, String body) {
        Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
       String[] toAddresses = new String[] {address};
       // list<String> toAddresses = new list<String>();
            
        mail.setToAddresses(toAddresses);
        mail.setSubject(subject);
        mail.setPlainTextBody(body);
        Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });
    }

}
=================================================================
String[] toAddresses = new String[] {'lalitkumars1987@gmail.com', 'abc@gmail.com'};
//string address = 'abc@sfclouds.com';
String subject = 'Test Email';
String body = 'This is a test mail.';
EmailManager em = new EmailManager();

em.sendMail(toAddresses, subject, body);

----------------------------------------------------------------------------------------------------------------------------------
I am only able to send email to one address. But when i am sending to multiple recepients i am getting the above mentioned error.
Kindly correct it.
thanks
lalit
hi,
there is an integer list of (1,2,3,4,4). I want to copy this list in another list in such a way that list should not copy the number 4 twice. It should copy in a list not in set. What would be the code ?

thanks
lalit
hi,
there is an integer list of (1,2,3,4,4). I want to copy this list in another list in such a way that list should not copy the number 4 twice. It should copy in a list not in set. What would be the code ?

thanks
lalit