4 instantiations of MailMessage
System.Net.Mail (4)
System\Net\Mail\SmtpClient.cs (4)
389MailMessage mailMessage = new MailMessage(from, recipients, subject, body); 588SendAsync(new MailMessage(from, recipients, subject, body), userToken); 641var message = new MailMessage(from, recipients, subject, body); 652var 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\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)
389MailMessage mailMessage = new MailMessage(from, recipients, subject, body); 392public void Send(MailMessage message) 405/// <param name="message">The <see cref="MailMessage"/> to send.</param> 410private async Task<(Exception? ex, bool synchronous)> SendAsyncInternal<TIOAdapter>(MailMessage message, bool invokeSendCompleted, object? userToken, bool forceWrapExceptions = false, CancellationToken cancellationToken = default) 591public void SendAsync(MailMessage message, object? userToken) 641var message = new MailMessage(from, recipients, subject, body); 645public Task SendMailAsync(MailMessage message) 652var message = new MailMessage(from, recipients, subject, body); 656public Task SendMailAsync(MailMessage message, CancellationToken cancellationToken) 721private static void ValidateUnicodeRequirement(MailMessage message, MailAddressCollection recipients, bool allowUnicode)