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
userUserThe recipient user.
fromEmailstringThe sender email.
fromNamestringThe sender name.
subjectstringThe email subject.
templatePathstringThe relative path of email template.
emailEncodingstringThe encoding. Leave it empty to use UTF-8.
isRecoveryEmailboolIf
truesends password recovery data, otherwise, user details.resetPagestringThe password recovery page (uses when
isRecoveryEmailis true).domainstringThe domain for
resetPagelink.
Returns
- bool
trueif 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
userUserThe recipient user.
fromEmailstringThe sender email.
fromNamestringThe sender name.
subjectstringThe email subject.
templatePathstringThe relative path of email template.
emailEncodingstringThe encoding. Leave it empty to use UTF-8.
isRecoveryEmailboolIf
truesends password recovery data, otherwise, user details.resetPagestringThe password recovery page (uses when
isRecoveryEmailis true).domainstringThe domain for
resetPagelink.templatePagestringThe internal link to be used as template instead of
templatePathlink.
Returns
- bool
trueif 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
groupIdintThe user group.
fromEmailstringThe sender email.
fromNamestringThe sender name.
subjectstringThe email subject.
templatePathstringThe relative path of email template.
emailEncodingstringThe encoding. Leave it empty to use UTF-8.
isRecoveryEmailboolIf
truesends password recovery data, otherwise, user details.resetPagestringdomainstring
Returns
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
groupIdintThe user group.
fromEmailstringThe sender email.
fromNamestringThe sender name.
subjectstringThe email subject.
templatePathstringThe relative path of email template.
emailEncodingstringThe encoding. Leave it empty to use UTF-8.
isRecoveryEmailboolIf
truesends password recovery data, otherwise, user details.resetPagestringdomainstringtemplatePagestringThe internal link to be used as template instead of
templatePathlink.
Returns
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
usersIEnumerable<User>The recipient users.
fromEmailstringThe sender email.
fromNamestringThe sender name.
subjectstringThe email subject.
templatePathstringThe relative path of email template.
emailEncodingstringThe encoding. Leave it empty to use UTF-8.
isRecoveryEmailboolIf
truesends password recovery data, otherwise, user details.resetPagestringThe password recovery page (uses when
isRecoveryEmailis true).domainstringThe domain for
resetPagelink.
Returns
- bool
trueif 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
usersIEnumerable<User>The recipient users.
fromEmailstringThe sender email.
fromNamestringThe sender name.
subjectstringThe email subject.
templatePathstringThe relative path of email template.
emailEncodingstringThe encoding. Leave it empty to use UTF-8.
isRecoveryEmailboolIf
truesends password recovery data, otherwise, user details.resetPagestringThe password recovery page (uses when
isRecoveryEmailis true).domainstringThe domain for
resetPagelink.templatePagestringThe internal link to be used as template instead of
templatePathlink.
Returns
- bool
trueif 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)