4 instantiations of MailMessage
System.Net.Mail (4)
System\Net\Mail\SmtpClient.cs (4)
424MailMessage mailMessage = new MailMessage(from, recipients, subject, body); 623SendAsync(new MailMessage(from, recipients, subject, body), userToken); 676var message = new MailMessage(from, recipients, subject, body); 687var message = new MailMessage(from, recipients, subject, body);
12 references to MailMessage
netstandard (1)
netstandard.cs (1)
1174[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Mail.MailMessage))]
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
659[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Mail.MailMessage))]
System.Net.Mail (10)
System\Net\Mail\SmtpClient.cs (10)
424MailMessage mailMessage = new MailMessage(from, recipients, subject, body); 427public void Send(MailMessage message) 440/// <param name="message">The <see cref="MailMessage"/> to send.</param> 445private async Task<(Exception? ex, bool synchronous)> SendAsyncInternal<TIOAdapter>(MailMessage message, bool invokeSendCompleted, object? userToken, bool forceWrapExceptions = false, CancellationToken cancellationToken = default) 626public void SendAsync(MailMessage message, object? userToken) 676var message = new MailMessage(from, recipients, subject, body); 680public Task SendMailAsync(MailMessage message) 687var message = new MailMessage(from, recipients, subject, body); 691public Task SendMailAsync(MailMessage message, CancellationToken cancellationToken) 756private static void ValidateUnicodeRequirement(MailMessage message, MailAddressCollection recipients, bool allowUnicode)