Class EmailMarketingService
- Namespace
- Dynamicweb.Content
- Assembly
- Dynamicweb.dll
Email marketing service to send to users information messages.
- Inheritance
-
Email
Marketing Service
- 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
UserThe recipient user.
fromEmail
stringThe sender email.
fromName
stringThe sender name.
subject
stringThe email subject.
templatePath
stringThe relative path of email template.
emailEncoding
stringThe encoding. Leave it empty to use UTF-8.
isRecoveryEmail
boolIf
true
sends password recovery data, otherwise, user details.resetPage
stringThe password recovery page (uses when
isRecoveryEmail
is true).domain
stringThe 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
UserThe recipient user.
fromEmail
stringThe sender email.
fromName
stringThe sender name.
subject
stringThe email subject.
templatePath
stringThe relative path of email template.
emailEncoding
stringThe encoding. Leave it empty to use UTF-8.
isRecoveryEmail
boolIf
true
sends password recovery data, otherwise, user details.resetPage
stringThe password recovery page (uses when
isRecoveryEmail
is true).domain
stringThe domain for
resetPage
link.templatePage
stringThe 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
intThe user group.
fromEmail
stringThe sender email.
fromName
stringThe sender name.
subject
stringThe email subject.
templatePath
stringThe relative path of email template.
emailEncoding
stringThe encoding. Leave it empty to use UTF-8.
isRecoveryEmail
boolIf
true
sends password recovery data, otherwise, user details.resetPage
stringdomain
string
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
groupId
intThe user group.
fromEmail
stringThe sender email.
fromName
stringThe sender name.
subject
stringThe email subject.
templatePath
stringThe relative path of email template.
emailEncoding
stringThe encoding. Leave it empty to use UTF-8.
isRecoveryEmail
boolIf
true
sends password recovery data, otherwise, user details.resetPage
stringdomain
stringtemplatePage
stringThe internal link to be used as template instead of
templatePath
link.
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
users
IEnumerable<User>The recipient users.
fromEmail
stringThe sender email.
fromName
stringThe sender name.
subject
stringThe email subject.
templatePath
stringThe relative path of email template.
emailEncoding
stringThe encoding. Leave it empty to use UTF-8.
isRecoveryEmail
boolIf
true
sends password recovery data, otherwise, user details.resetPage
stringThe password recovery page (uses when
isRecoveryEmail
is true).domain
stringThe 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
stringThe sender email.
fromName
stringThe sender name.
subject
stringThe email subject.
templatePath
stringThe relative path of email template.
emailEncoding
stringThe encoding. Leave it empty to use UTF-8.
isRecoveryEmail
boolIf
true
sends password recovery data, otherwise, user details.resetPage
stringThe password recovery page (uses when
isRecoveryEmail
is true).domain
stringThe domain for
resetPage
link.templatePage
stringThe 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)