📄 opensmtp.xml
字号:
</member>
<member name="P:OpenSmtp.Mail.MailMessage.MixedBoundary">
<value>Stores the string boundary used between MIME parts</value>
</member>
<member name="T:OpenSmtp.Mail.MailPriority">
<summary>
This Type stores different priority values used for a MailMessage
<seealso cref="T:OpenSmtp.Mail.MailMessage"/>
</summary>
<example>
<code>
from = new EmailAddress("support@OpenSmtp.com", "Support");
to = new EmailAddress("recipient@OpenSmtp.com", "Joe Smith");
msg = new MailMessage(from, to);
msg.Priority = MailPriority.High;
</code>
</example>
</member>
<member name="T:OpenSmtp.Mail.MalformedAddressException">
<summary>
This is an System.Exception class for handling
an invalid RFC 822 EmailAddress.</summary>
</member>
<member name="T:OpenSmtp.Mail.ParseException">
<summary>
This is a System.Exception class for handling exceptions in
MIME Parsing operations.
</summary>
</member>
<member name="T:OpenSmtp.Mail.ReplyConstants">
<summary>
This Type is used to store known SMTP responses specified by RFC 821 and 2821
</summary>
</member>
<member name="T:OpenSmtp.Mail.Smtp">
<summary>
This Type sends a MailMessage using SMTP
<seealso cref="T:OpenSmtp.Mail.EmailAddress"/>
<seealso cref="T:OpenSmtp.Mail.MailMessage"/>
<seealso cref="T:OpenSmtp.Mail.SmtpConfig"/>
</summary>
<example>
<code>
from = new EmailAddress("support@OpenSmtp.com", "Support");
to = new EmailAddress("recipient@OpenSmtp.com", "Joe Smith");
msg = new MailMessage(from, to);
msg.Subject = "Testing OpenSmtp .Net SMTP component";
msg.Body = "Hello Joe Smith.";
Smtp smtp = new Smtp("localhost", 25);
smtp.SendMail(msg);
</code>
</example>
</member>
<member name="M:OpenSmtp.Mail.Smtp.#ctor">
<summary>Default constructor</summary>
<example>
<code>
Smtp smtp = new Smtp();
smtp.Host = "mail.OpenSmtp.com";
smtp.Port = 25;
</code>
</example>
</member>
<member name="M:OpenSmtp.Mail.Smtp.#ctor(System.String,System.Int32)">
<summary>Constructor specifying a host and port</summary>
<example>
<code>
Smtp smtp = new Smtp("mail.OpenSmtp.com", 25);
</code>
</example>
</member>
<member name="M:OpenSmtp.Mail.Smtp.#ctor(System.String,System.String,System.String)">
<summary>Constructor specifying a host, username and password</summary>
<example>
<code>
Smtp smtp = new Smtp("mail.OpenSmtp.com", "login", "pwd");
</code>
</example>
</member>
<member name="M:OpenSmtp.Mail.Smtp.#ctor(System.String,System.String,System.String,System.Int32)">
<summary>Constructor specifying a host, username, password and port</summary>
<example>
<code>
Smtp smtp = new Smtp("mail.OpenSmtp.com", "login", "pwd", 25);
</code>
</example>
</member>
<member name="M:OpenSmtp.Mail.Smtp.SendMail(System.String,System.String,System.String,System.String)">
<summary>Sends a mail message using supplied MailMessage properties as string params</summary>
<param name="from">RFC 822 formatted email sender address</param>
<param name="to">RFC 822 formatted email recipient address</param>
<param name="subject">Subject of the email message</param>
<param name="body">Text body of the email message</param>
<example>
<code>
Smtp smtp = new Smtp("mail.OpenSmtp.com", 25);
smtp.SendMail("support@OpenSmtp.com", "recipient@OpenSmtp.com", "Hi", "Hello Joe Smith");
</code>
</example>
</member>
<member name="M:OpenSmtp.Mail.Smtp.SendMail(OpenSmtp.Mail.MailMessage,System.String,System.Int32)">
<summary>Sends a mail message using supplied MailMessage and Smtp properties</summary>
<param name="msg">MailMessage instance</param>
<param name="host">SMTP host address</param>
<param name="port">Port used to connect to host</param>
<example>
<code>
MailMessage msg = new MailMessage("support@OpenSmtp.com", "recipient@OpenSmtp.com");
msg.Subject = "Hi";
msg.Body = "Hello Joe Smith."
Smtp smtp = new Smtp();
smtp.SendMail(msg, "mail.OpenSmtp.com", 25);
</code>
</example>
</member>
<member name="M:OpenSmtp.Mail.Smtp.SendMail(OpenSmtp.Mail.MailMessage)">
<summary>Sends a mail message using supplied MailMessage</summary>
<param name="msg">MailMessage instance</param>
<example>
<code>
MailMessage msg = new MailMessage("support@OpenSmtp.com", "recipient@OpenSmtp.com");
msg.Subject = "Hi";
msg.Body = "Hello Joe Smith."
Smtp smtp = new Smtp("mail.OpenSmtp.com", 25);
smtp.SendMail(msg);
</code>
</example>
</member>
<member name="M:OpenSmtp.Mail.Smtp.Reset">
<summary>Resets the Smtp instance to it's defaut values; set in the SmtpConfig class</summary>
<example>
<code>
Smtp smtp = new Smtp("mail.OpenSmtp.com", 25);
smtp.Reset();
</code>
</example>
</member>
<member name="M:OpenSmtp.Mail.Smtp.WriteToStream(System.Net.Sockets.NetworkStream@,System.String)">
NetworkStream Helper methods
</member>
<member name="M:OpenSmtp.Mail.Smtp.CheckForError(System.String,System.String)">
Checks stream returned from SMTP server for success code
If the success code is not present it will throw an error.
</member>
<member name="M:OpenSmtp.Mail.Smtp.IsUnknownCommand(System.String)">
Check to see if the command sent returns a Unknown Command Error
</member>
<member name="M:OpenSmtp.Mail.Smtp.AuthImplemented(System.String)">
Check to see if AUTH command returns valid challenge.
A valid AUTH string must be passed into this method.
</member>
<member name="P:OpenSmtp.Mail.Smtp.Host">
<value>Stores the Host address SMTP server. The default value is "localhost"</value>
<example>"mail.OpenSmtp.com"</example>
</member>
<member name="P:OpenSmtp.Mail.Smtp.Port">
<value>Stores the Port of the host SMTP server. The default value is port 25</value>
</member>
<member name="P:OpenSmtp.Mail.Smtp.SendTimeout">
<value>Stores send timeout for the connection to the SMTP server in milliseconds.
The default value is 10000 milliseconds.</value>
</member>
<member name="P:OpenSmtp.Mail.Smtp.RecieveTimeout">
<value>Stores send timeout for the connection to the SMTP server in milliseconds.
The default value is 10000 milliseconds.</value>
</member>
<member name="P:OpenSmtp.Mail.Smtp.Username">
<value>Stores the username used to authenticate on the SMTP server.
If no authentication is needed leave this value blank.</value>
</member>
<member name="P:OpenSmtp.Mail.Smtp.Password">
<value>Stores the password used to authenticate on the SMTP server.
If no authentication is needed leave this value blank.</value>
</member>
<member name="E:OpenSmtp.Mail.Smtp.Connected">
<value>Event that fires when connected with target SMTP server.</value>
</member>
<member name="E:OpenSmtp.Mail.Smtp.Disconnected">
<value>Event that fires when dicconnected with target SMTP server.</value>
</member>
<member name="E:OpenSmtp.Mail.Smtp.Authenticated">
<value>Event that fires when authentication is successful.</value>
</member>
<member name="E:OpenSmtp.Mail.Smtp.StartedMessageTransfer">
<value>Event that fires when message transfer has begun.</value>
</member>
<member name="E:OpenSmtp.Mail.Smtp.EndedMessageTransfer">
<value>Event that fires when message transfer has ended.</value>
</member>
<member name="T:OpenSmtp.Mail.SmtpConfig">
<summary>
This type stores configuration information for the smtp component.
WARNING: If you turn on logging the caller must have proper permissions
and the log file will grow very quickly if a lot of email messages are
being sent. PLEASE USE THE LOGGING FEATURE FOR DEBUGGING ONLY.
</summary>
</member>
<member name="F:OpenSmtp.Mail.SmtpConfig.SmtpHost">
<value>Stores the default SMTP host</value>
</member>
<member name="F:OpenSmtp.Mail.SmtpConfig.SmtpPort">
<value>Stores the default SMTP port</value>
</member>
<member name="F:OpenSmtp.Mail.SmtpConfig.LogToText">
<value>Flag used for turning on and off logging to a text file.
The caller must have proper permissions for this to work</value>
</member>
<member name="F:OpenSmtp.Mail.SmtpConfig.LogPath">
<value>Path to use when logging to a text file.
The caller must have proper permissions for this to work</value>
</member>
<member name="F:OpenSmtp.Mail.SmtpConfig.TempPath">
<value>Path used to store temp files used when sending email messages.
The default value is the temp directory specified in the Environment variables.</value>
</member>
<member name="F:OpenSmtp.Mail.SmtpConfig.VerifyAddresses">
<value>Flag used to turn on and off address format verification.
If it is turned on all addresses must meet RFC 822 format.
The default value is false.
WARNING: Turning this on will decrease performance.</value>
</member>
<member name="F:OpenSmtp.Mail.SmtpConfig.Version">
<value>Version of this OpenSmtp SMTP .Net component</value>
</member>
<member name="F:OpenSmtp.Mail.SmtpConfig.X_MAILER_HEADER">
<value>Mailer header added to each message sent</value>
</member>
<member name="T:OpenSmtp.Mail.SmtpException">
<summary>
This is a System.Exception class for handling exceptions in
SMTP operations.
</summary>
</member>
</members>
</doc>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -