Visual Basic 6.0 Send Email Using Office365 SMTP - Chilkat Examples
Có thể bạn quan tâm
(Visual Basic 6.0) Send Email using office365 SMTP
Demonstrates how to send an email using Office365.
' This example requires the Chilkat API to have been previously unlocked. ' See Global Unlock Sample for sample code. ' The mailman object is used for sending and receiving email. Dim mailman As New ChilkatMailMan ' Set the SMTP server to Office365's SMTP server. ' Note: Please be sure to double-check the SMTP settings ' with your provider or with the official Office365 documentation ' provided by Microsoft. The required settings could change... mailman.SmtpHost = "smtp.office365.com" mailman.SmtpPort = 587 mailman.StartTLS = 1 ' Set the SMTP login/password mailman.SmtpUsername = "OFFICE365_USERNAME" mailman.SmtpPassword = "OFFICE365_PASSWORD" ' Create a new email object Dim email As New ChilkatEmail email.Subject = "This is a test" email.Body = "This is a test" email.From = "My Name <[email protected]>" Dim success As Long success = email.AddTo("Chilkat Admin","[email protected]") ' Call SendEmail to connect to the SMTP server and send. ' The connection (i.e. session) to the SMTP server remains ' open so that subsequent SendEmail calls may use the ' same connection. success = mailman.SendEmail(email) If (success <> 1) Then Debug.Print mailman.LastErrorText Exit Sub End If success = mailman.CloseSmtpConnection() If (success <> 1) Then Debug.Print "Connection to SMTP server not closed cleanly." End If Debug.Print "Mail Sent!"
Chilkat ActiveX Downloads
ActiveX for 32-bit and 64-bit Windows
Từ khóa » Visual Basic Send Email Office 365
-
Smtp. Sending Emails From A Visual Basic Application
-
Sending Email Using VBnet And Smtp. - Microsoft Q&A
-
Send Email Using Hotmail/Live/Outlook/Office 365 In VB.NET
-
- Sending E-mail Through O365 - Stack Overflow
-
Send Email With Office 365 Using System.Web.Mail - Tek-Tips
-
How To Send Bulk Emails From Excel VBA In One Click ... - Geek Excel
-
VB.Net - Send Email - Tutorialspoint
-
Send Email From C# / VB.NET / ASP.NET Using SMTP - GemBox
-
Sending Emails Using The Office 365 APIs - CodeGuru
-
Office 365 SMTP Relay Configuration To Send Emails Via ... - FMS, Inc.
-
Sending Emails Programmatically From The Custom Application ...
-
Microsoft Office 365 Activity (Send Mail) - RPA Component
-
Use CDO To Send Email From VBScript Or VBA Through Office 365