Custom email with attachment

stark g asked on February 19, 2019 14:40

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.

Recent Answers


Eric Dugre answered on February 19, 2019 17:01

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()

0 votesVote for this answer Mark as a Correct answer

stark g answered on February 19, 2019 17:10

Hi thanks for the information, do you have any sample code regarding EmailMessage.Attachments if possible please comment. It will be helpful, thanks.

0 votesVote for this answer Mark as a Correct answer

Rui Wang answered on February 19, 2019 19:07 (last edited on February 19, 2019 19:08)

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.