'attached a local file to the mail 'msg.Attachments.Add(New Aspose.Network.Mail.Attachment("..\..\Module1.vb"))
Add attachement to the mail
'send mail by SmtpClient Dim client As Aspose.Network.Mail.SmtpClient = New SmtpClient("mail.aspose.com") client.Port = 25 client.Username = "user" client.Password = "password"
Creat a SmtpClient instance to connect to your mail server, send the message Try 'send this message client.Send(msg) Catch e As Exception Console.WriteLine(e) End Try Console.Read()
Feel free to ping me with any problems. We are glad to provide any help or demonstrations if you need.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.