4 instantiations of MailMessage
System.Net.Mail (4)
System\Net\Mail\SmtpClient.cs (4)
457MailMessage mailMessage = new MailMessage(from, recipients, subject, body); 656SendAsync(new MailMessage(from, recipients, subject, body), userToken); 709var message = new MailMessage(from, recipients, subject, body); 720var 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)
parent\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)
457MailMessage mailMessage = new MailMessage(from, recipients, subject, body); 460public void Send(MailMessage message) 473/// <param name="message">The <see cref="MailMessage"/> to send.</param> 478private async Task<(Exception? ex, bool synchronous)> SendAsyncInternal<TIOAdapter>(MailMessage message, bool invokeSendCompleted, object? userToken, bool forceWrapExceptions = false, CancellationToken cancellationToken = default) 659public void SendAsync(MailMessage message, object? userToken) 709var message = new MailMessage(from, recipients, subject, body); 713public Task SendMailAsync(MailMessage message) 720var message = new MailMessage(from, recipients, subject, body); 724public Task SendMailAsync(MailMessage message, CancellationToken cancellationToken) 789private static void ValidateUnicodeRequirement(MailMessage message, MailAddressCollection recipients, bool allowUnicode)