+ Start a Discussion
st0000st0000 

Sending Email from Salesforce with documents attached

Hi

 

Can anyone point me in the right directrion.  I want to be able to send emails to departments within our company with files attached. 

 

I have created a custom object that allows notes and files to be attached to it and have also created a custom email template that I want to be sent.  I have also started building an Apex class for the pupose of sending the email, with a send method within; can this mehtod be called from a custom button on a standard page layout, or would I hvae to go the whole hog and create a custom visual force page?


Thanks in Advance.

 

Stuart

Best Answer chosen by Admin (Salesforce Developers) 
Rasmus MenckeRasmus Mencke

You can call an Apex Class from a custom button,. 

All Answers

Rasmus MenckeRasmus Mencke

You can call an Apex Class from a custom button,. 

This was selected as the best answer
sam_Adminsam_Admin

Hey,

   I have the same task that i need to send email when a file is attached, could please guide me how to write the class or share your code?

 

TIA!

st0000st0000

Hi Sam,

 

I'm afraid we didn't implement this as the requirement for it was dropped.

 

Apologies.

 

Stuart