Hi Team, I am trying to create a custom email and add the attachment which is in my local storage, is that possible using kentico predefined classes or do we need to create custom code for that.
You can find an example of sending an email via code here: https://devnet.kentico.com/articles/sending-e-mails-using-api. To add attachments, you can refer to the EmailMessage.Attachments property, where you can call Add()
Hi thanks for the information, do you have any sample code regarding EmailMessage.Attachments if possible please comment. It will be helpful, thanks.
Here is an old example, although it's written in VB.
https://stackoverflow.com/questions/35182615/adding-attachment-to-email-via-kentico-email-sendemail-method-results-in-nullre
Please, sign in to be able to submit a new answer.