New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the Community Exchange, where community members ask and answer questions about DNN. To get started, just start typing your question below and either select one of the suggested questions or ask a new question of your own.

Attach file to Notification

Return to previous page

  • 5/21/2019
  • 917 Views

Question:

Angelos M Reda 5 years ago

I am using DNN 9 and I want to send a notification with an attachment file, but seems that DNN doesn't allow to do that.

Is there is a way (or any workaround) to do that?

Here is the DNN code of the NotificationsController


and here is my code that calls the DNN code

//...

Notification dnnNotification = new Notification { NotificationTypeID = notification.NotificationTypeId, From = notification.From, Subject = notification.Subject, Body = notification.Body }; NotificationsController.Instance.SendNotification(dnnNotification, portalId, dnnRoles, dnnUsers);

Attach file to Notification

Angelos M Reda
Angelos M Reda 5 years ago
Add an Answer

Answers

Sign In to Participate
Or register to become a member