public static Task SendMailAsync(
SmtpClient smtpClient,
string username,
string password,
string subject,
string body,
MailAddressCollection addresses,
ICollection<Attachment> attachments,
bool isBodyHtml
)
Public Shared Function SendMailAsync (
smtpClient As SmtpClient,
username As String,
password As String,
subject As String,
body As String,
addresses As MailAddressCollection,
attachments As ICollection(Of Attachment),
isBodyHtml As Boolean
) As Task
Dim smtpClient As SmtpClient
Dim username As String
Dim password As String
Dim subject As String
Dim body As String
Dim addresses As MailAddressCollection
Dim attachments As ICollection(Of Attachment)
Dim isBodyHtml As Boolean
Dim returnValue As Task
returnValue = UtilMail.SendMailAsync(smtpClient,
username, password, subject, body,
addresses, attachments, isBodyHtml)
public:
static Task^ SendMailAsync(
SmtpClient^ smtpClient,
String^ username,
String^ password,
String^ subject,
String^ body,
MailAddressCollection^ addresses,
ICollection<Attachment^>^ attachments,
bool isBodyHtml
)
static member SendMailAsync :
smtpClient : SmtpClient *
username : string *
password : string *
subject : string *
body : string *
addresses : MailAddressCollection *
attachments : ICollection<Attachment> *
isBodyHtml : bool -> Task
No code example is currently available or this language may not be supported.
[Missing <param name="smtpClient"/> documentation for "M:DevCase.Core.Networking.Mailing.UtilMail.SendMailAsync(System.Net.Mail.SmtpClient,System.String,System.String,System.String,System.String,System.Net.Mail.MailAddressCollection,System.Collections.Generic.ICollection{System.Net.Mail.Attachment},System.Boolean)"]
[Missing <returns> documentation for "M:DevCase.Core.Networking.Mailing.UtilMail.SendMailAsync(System.Net.Mail.SmtpClient,System.String,System.String,System.String,System.String,System.Net.Mail.MailAddressCollection,System.Collections.Generic.ICollection{System.Net.Mail.Attachment},System.Boolean)"]
No code example is currently available or this language may not be supported.
Dim addressCollection As New MailAddressCollection
addressCollection.Add(New MailAddress("address1@domain.com"))
addressCollection.Add(New MailAddress("address2@domain.com"))
Dim attachments As New Collection(Of Attachment) From {New Attachment("C:\File1.txt"), New Attachment("C:\File2.txt")}
Await SendMailAsync("Username@Hotmail.com", "Password", "Email Subject", "Message Body", addressCollection, attachments, isBodyHtml:=False)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.