4 instantiations of MailMessage
System.Net.Mail (4)
System\Net\Mail\SmtpClient.cs (4)
402MailMessage mailMessage = new MailMessage(from, recipients, subject, body); 543SendAsync(new MailMessage(from, recipients, subject, body), userToken); 714var message = new MailMessage(from, recipients, subject, body); 725var message = new MailMessage(from, recipients, subject, body);
11 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 (9)
System\Net\Mail\SmtpClient.cs (9)
49private MailMessage? _message; //required to prevent premature finalization 402MailMessage mailMessage = new MailMessage(from, recipients, subject, body); 406public void Send(MailMessage message) 546public void SendAsync(MailMessage message, object? userToken) 714var message = new MailMessage(from, recipients, subject, body); 718public Task SendMailAsync(MailMessage message) 725var message = new MailMessage(from, recipients, subject, body); 729public Task SendMailAsync(MailMessage message, CancellationToken cancellationToken) 975private static void ValidateUnicodeRequirement(MailMessage message, MailAddressCollection recipients, bool allowUnicode)