Hi,
you can modify file: ~/CMSModules/Messaging/Controls/SendMessage.ascx.cs
line 634:
if (!isIgnored)
{
MessageInfoProvider.SendNotificationEmail(mi, recipient, currentUser, CMSContext.CurrentSiteName);
}
Above function sends notification email to the email address defined in
Messaging notification e-mail in CMS Desk -> Administration -> users -> <user> -> SettingsYou can create your custom function that will send an email to the default user's email. You can send an email using following code:
CMS.EmailEngine.EmailMessage msg = new CMS.EmailEngine.EmailMessage();
msg.From = "Somebody Surname <somebody@domain.com>"; // use valid e-mail
msg.Recipients = "mail@mail.com"; // use valid e-mail
msg.Subject = "Custom e-mail";
msg.Body = "Text in the body ";
CMS.EmailEngine.EmailSender.SendEmail(msg);
Best regards,
Ivana Tomanickova