function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rabbani sayyed 8Rabbani sayyed 8 

I want to Send automatic email acknowledgements to the Partner whenever they successfully post a document on the Portal. How can i achieve this ? Can i do it trigger ? if yes, anyone share me the sample apex code?

I want to Send automatic email acknowledgements to the Partner  whenever they successfully post a document on the Portal. How can i achieve this ? Can i do it trigger ? if yes, anyone share me the sample apex code? 
sharathchandra thukkanisharathchandra thukkani
If you are storing it in document object you can not write trigger on that object if it is attachment then you can write trigger on it.

If document object then you should write logic using SingleEmailMessage class which will be useful to send email.

for more details 
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_email_outbound_single.htm