Click or drag to resize
EmailSenderSendTestEmail Method
Sends the test e-mail to verify that the SMTP server receives e-mails.

Namespace: CMS.EmailEngine
Assembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 13.0.131
Syntax
C#
public static void SendTestEmail(
	string siteName,
	EmailMessage message,
	SMTPServerInfo smtpServer
)

Parameters

siteName
Type: SystemString
Name of the site
message
Type: CMS.EmailEngineEmailMessage
The message
smtpServer
Type: CMS.EmailEngineSMTPServerInfo
The SMTP server
Remarks
This method sends e-mail messages synchronously and should be used for testing only as it may disrupt the e-mail queue sending thread if the SMTP server is in use.
See Also