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