Table of Contents

Class EmailMarketingService

Namespace
Dynamicweb.Content
Assembly
Dynamicweb.dll

Email marketing service to send to users information messages.

public class EmailMarketingService
Inheritance
EmailMarketingService
Inherited Members

Methods

SendUserInformationEmail(User, string, string, string, string, string, bool, string, string)

Sends the Email message contains user details or password recovery data.

public static bool SendUserInformationEmail(User user, string fromEmail, string fromName, string subject, string templatePath, string emailEncoding, bool isRecoveryEmail, string resetPage, string domain)

Parameters

user User

The recipient user.

fromEmail string

The sender email.

fromName string

The sender name.

subject string

The email subject.

templatePath string

The relative path of email template.

emailEncoding string

The encoding. Leave it empty to use UTF-8.

isRecoveryEmail bool

If true sends password recovery data, otherwise, user details.

resetPage string

The password recovery page (uses when isRecoveryEmail is true).

domain string

The domain for resetPage link.

Returns

bool

true if the email sent successfully, otherwise, false.

SendUserInformationEmail(User, string, string, string, string, string, bool, string, string, string)

Sends the Email message contains user details or password recovery data.

public static bool SendUserInformationEmail(User user, string fromEmail, string fromName, string subject, string templatePath, string emailEncoding, bool isRecoveryEmail, string resetPage, string domain, string templatePage)

Parameters

user User

The recipient user.

fromEmail string

The sender email.

fromName string

The sender name.

subject string

The email subject.

templatePath string

The relative path of email template.

emailEncoding string

The encoding. Leave it empty to use UTF-8.

isRecoveryEmail bool

If true sends password recovery data, otherwise, user details.

resetPage string

The password recovery page (uses when isRecoveryEmail is true).

domain string

The domain for resetPage link.

templatePage string

The internal link to be used as template instead of templatePath link.

Returns

bool

true if the email sent successfully, otherwise, false.

SendUserInformationEmailToUserGroup(int, string, string, string, string, string, bool, string, string)

Sends the Email contains user details or password recovery data to each user in the group.

public static bool SendUserInformationEmailToUserGroup(int groupId, string fromEmail, string fromName, string subject, string templatePath, string emailEncoding, bool isRecoveryEmail, string resetPage, string domain)

Parameters

groupId int

The user group.

fromEmail string

The sender email.

fromName string

The sender name.

subject string

The email subject.

templatePath string

The relative path of email template.

emailEncoding string

The encoding. Leave it empty to use UTF-8.

isRecoveryEmail bool

If true sends password recovery data, otherwise, user details.

resetPage string
domain string

Returns

bool

SendUserInformationEmailToUserGroup(int, string, string, string, string, string, bool, string, string, string)

Sends the Email contains user details or password recovery data to each user in the group.

public static bool SendUserInformationEmailToUserGroup(int groupId, string fromEmail, string fromName, string subject, string templatePath, string emailEncoding, bool isRecoveryEmail, string resetPage, string domain, string templatePage)

Parameters

groupId int

The user group.

fromEmail string

The sender email.

fromName string

The sender name.

subject string

The email subject.

templatePath string

The relative path of email template.

emailEncoding string

The encoding. Leave it empty to use UTF-8.

isRecoveryEmail bool

If true sends password recovery data, otherwise, user details.

resetPage string
domain string
templatePage string

The internal link to be used as template instead of templatePath link.

Returns

bool

SendUserInformationEmailToUsers(IEnumerable<User>, string, string, string, string, string, bool, string, string)

Sends the Email message contains user details or password recovery data.

public static bool SendUserInformationEmailToUsers(IEnumerable<User> users, string fromEmail, string fromName, string subject, string templatePath, string emailEncoding, bool isRecoveryEmail, string resetPage, string domain)

Parameters

users IEnumerable<User>

The recipient users.

fromEmail string

The sender email.

fromName string

The sender name.

subject string

The email subject.

templatePath string

The relative path of email template.

emailEncoding string

The encoding. Leave it empty to use UTF-8.

isRecoveryEmail bool

If true sends password recovery data, otherwise, user details.

resetPage string

The password recovery page (uses when isRecoveryEmail is true).

domain string

The domain for resetPage link.

Returns

bool

true if the email sent successfully, otherwise, false.

SendUserInformationEmailToUsers(IEnumerable<User>, string, string, string, string, string, bool, string, string, string)

Sends the Email message contains user details or password recovery data.

public static bool SendUserInformationEmailToUsers(IEnumerable<User> users, string fromEmail, string fromName, string subject, string templatePath, string emailEncoding, bool isRecoveryEmail, string resetPage, string domain, string templatePage)

Parameters

users IEnumerable<User>

The recipient users.

fromEmail string

The sender email.

fromName string

The sender name.

subject string

The email subject.

templatePath string

The relative path of email template.

emailEncoding string

The encoding. Leave it empty to use UTF-8.

isRecoveryEmail bool

If true sends password recovery data, otherwise, user details.

resetPage string

The password recovery page (uses when isRecoveryEmail is true).

domain string

The domain for resetPage link.

templatePage string

The internal link to be used as template instead of templatePath link.

Returns

bool

true if the email sent successfully, otherwise, false.

SendUserInformationEmailToUsersAsync(IEnumerable<User>, string, string, string, string, string, bool, string, string, string)

public static void SendUserInformationEmailToUsersAsync(IEnumerable<User> users, string fromEmail, string fromName, string subject, string templatePath, string emailEncoding, bool isRecoveryEmail, string resetPage, string domain, string templatePage)

Parameters

users IEnumerable<User>
fromEmail string
fromName string
subject string
templatePath string
emailEncoding string
isRecoveryEmail bool
resetPage string
domain string
templatePage string
To top