Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ BeginSendMail()

IAsyncResult System.Net.Mail.SmtpTransport.BeginSendMail ( MailAddress sender,
MailAddressCollection recipients,
string deliveryNotify,
bool allowUnicode,
AsyncCallback callback,
object state )
inlinepackage

Definition at line 159 of file SmtpTransport.cs.

160 {
161 if (sender == null)
162 {
163 throw new ArgumentNullException("sender");
164 }
165 if (recipients == null)
166 {
167 throw new ArgumentNullException("recipients");
168 }
169 SendMailAsyncResult sendMailAsyncResult = new SendMailAsyncResult(_connection, sender, recipients, allowUnicode, _connection.DSNEnabled ? deliveryNotify : null, callback, state);
170 sendMailAsyncResult.Send();
171 return sendMailAsyncResult;
172 }

References System.Net.Mail.SmtpTransport._connection, System.Net.Mail.SmtpConnection.DSNEnabled, and System.state.

Referenced by System.Net.Mail.SmtpClient.ConnectCallback().