MailService Class |
Namespace: NetQuarry.Services
The MailService type exposes the following members.
Name | Description | |
---|---|---|
MailService |
Constructs a NetQuarry.MailService object.
|
Name | Description | |
---|---|---|
Application |
Gets or Sets the IAppContext object for the service.
(Inherited from ServiceBase.) | |
Attributes | Gets/Sets the service attributes. (Inherited from ServiceBase.) | |
AuthenticationType |
Specifies the authentication mechanism to use when authentication is required to send messages to an SMTP service using a TCP/IP network socket.
| |
Category | Gets/Sets the service category. (Inherited from ServiceBase.) | |
CheckNoSendList |
True if the mail service should check outgoing email address against the no send list.
| |
ComponentID | Gets/Sets the service component ID. (Inherited from ServiceBase.) | |
DefaultSenderAddress |
Gets/Sets the address to use when there is no FROM address supplied in the message.
| |
Disabled |
True if the mail service is disabled.
| |
EmailSendAttributes |
Gets/Sets the property to control the 'Sender' property of the email address.
The Sender can be different than the From address. If it is, then the message comes FROM the
Sender ON BEHALF OF the From address. This can improve results with spam filters.
| |
ID | Gets/Sets the service ID. (Inherited from ServiceBase.) | |
IsSendAsync |
Returns true if the service delivers mail asynchronously.
| |
IsValidConfig |
Returns true if the Smtp configuration is valid.
| |
Name | Gets/Sets the service name. (Inherited from ServiceBase.) | |
NoSendListCheckDuration |
Number of minutes that elapse between automatic refreshing of the no sender list
| |
Properties | Gets the service's configuration properties (Inherited from ServiceBase.) | |
SendAsync |
True if the mail should be sent using the ThreadPool, otherwise synchronous
| |
ServiceName |
Returns the name of the email service.
| |
SmtpPassword |
The password used to authenticate to an SMTP server using basic (clear-text) authentication.
| |
SmtpPort |
The port on which the SMTP service specified by the smtpserver field is listening for connections.
| |
SmtpServer |
The name of the e-mail relay server. If SmtpServer is not set, the name of the local SMTP server is used.
| |
SmtpUserName |
The username for authenticating to an SMTP server using basic (clear-text) authentication.
| |
Type | Gets/Sets the service type. (Inherited from ServiceBase.) | |
UseSSL |
True if the SMTP server should use SSL.
|
Name | Description | |
---|---|---|
Clone |
Returns a copy of this object
(Inherited from ServiceBase.) | |
ConstructMessage(String, String, String, String, String, String, Boolean, Attachment, SendEmailFlags) |
Prepare a message for sending. This is to allow email senders using the safer Send() methods to first get the
message in a format suitable for events on a mapper.
| |
ConstructMessage(String, String, String, String, String, String, Boolean, Attachment, SendEmailFlags, String) |
Constructs a MailMessage object using the specified destination parameters
including optional attachments and Template.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsValidMailConfig |
Returns true if the email configuration is correct for the current user
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnWebhook |
Handles an invocation of a "webhook" event for the service.
You should implement this event if you want your service to handle webhooks through the standard platform webhook wiring.
The raw wiring for the webhook would look like handler.ashx?req=webhook&service=sss&appkey=aaa&token=ttt where sss is
the name of the service, aaa is the application key, and ttt is the authentication token.
When wired up in the manner, the platform will instantiate an IAppContext object, authenticate the request based on
the provided token, obtain an instance of the service from the Services collection, and invoke this
method on the service.
If the webhook is wired up in this manner, you must override the base implementation of this method or an exception will be thrown.
(Inherited from ServiceBase.) | |
Send(MailMessage) |
Sends an e-mail message using arguments supplied in the properties of the MailMessageMailMessage class.
| |
Send(Message) |
Sends an e-mail message using arguments supplied in the properties of the MailMessageMailMessage class.
| |
Send(MailMessage, SendEmailFlags) |
Sends an e-mail message using arguments supplied in the properties of the MailMessageMailMessage class.
| |
Send(MailMessage, SendEmailFlags, String) |
Sends an e-mail message using arguments supplied in the properties of the MailMessageMailMessage class.
| |
Send(String, String, String, String) |
Sends a text (not HTML) e-mail message using the specified basic parameters (from, to, subject, messageText).
| |
Send(String, String, String, String, Boolean) |
Sends a text or HTML e-mail message using the specified basic parameters (from, to, subject, messageText).
| |
Send(String, String, String, String, Boolean, String) |
Sends a text or HTML e-mail message using the specified basic parameters (from, to, subject, messageText)
and using a Template for the email composition.
| |
Send(String, String, String, String, String, String, Boolean) |
Sends a text or HTML e-mail message using the specified basic parameters (from, to, subject, messageText),
with CC and BCC addresses, and using a Template for the email composition.
| |
Send(String, String, String, String, String, String, Boolean, Attachment) |
Sends a text or HTML e-mail message using the specified basic parameters (from, to, subject, messageText),
with CC and BCC addresses, and with attachments.
| |
Send(String, String, String, String, String, String, Boolean, Attachment, SendEmailFlags) |
Sends a text or HTML e-mail message using the specified basic parameters (from, to, subject, messageText),
with CC and BCC addresses, with attachments, and with SendEmailFlags options.
| |
Send(String, String, String, String, String, String, Boolean, Attachment, SendEmailFlags, String) |
Sends a text or HTML e-mail message using the specified basic parameters (from, to, subject, messageText),
with CC and BCC addresses, with attachments, with SendEmailFlags options, and using a Template for the email composition.
| |
ServiceLoaded |
Called by the ServiceInfos collection after the service is created
(Inherited from ServiceBase.) | |
ToString | (Inherited from Object.) |
Name | Description | |
---|---|---|
EqualValue |
Determines if the object value is equal to another object. If the two objects are null, then this returns true.
There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways).
If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.) |