Email sender profiles

The profiles in the Notification service contain the specific configuration for the sending channel. Each profile must have a name and a type that is/are defined by the ISenderProfile interface. In the case of SMTP profile type, each profile contains the settings for the SMTP server.

SmtpSenderProfileProxy implements ISenderProfile interface and can be used as a parameter, where the interface is specified.

Create a new SMTP sender profile that you can use later during the messaging

One way to create a sender profile is to use the API and create it from code. You can do this using the following code sample:

Another way to create a sender profile is to register the new profile directly in the configuration file, using the following code:

Specify the profile used when creating a message job

The following sample demonstrates how to specify the default smtp profile when creating a message job:
For more information, see For developers: Email message jobs.

Get a sender profile using the NotificationService API.

The example below will show you how to get the default sender profile:

Get a collection of all profiles using the NotificationService API

The example below will show you how to get a collection of all profiles:

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?

Next article

Email subscribers