Skip to content

104 search results for ""

About Us

We are a team of Salesforce professional Architects/developers, lead by Avinash Vatsya. Avinash Vatsya I started the journey of Salesforce in 2014 and it is…

Comments closed

How to send email from APEX with an attachment.

Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage(); Messaging.EmailFileAttachment efa = new Messaging.EmailFileAttachment(); efa.setFileName(‘test.pdf’); //File Name efa.setBody(someFile); efa.setContentType(‘application/pdf’); // File type email.setSubject( ‘adada’ ); email.setToAddresses( new String[] {‘[email protected]’}…

Leave a Comment

Log In

Forgot password?

Forgot password?

Enter your account data and we will send you a link to reset your password.

Your password reset link appears to be invalid or expired.

Log in

Privacy Policy