OAuth 2.0 authentication
Dim objSMTP ' Create mailer component Set objSMTP = CreateObject("MailBee.SMTP") ' Unlock SMTP component objSMTP.LicenseKey = "put your license key here" ' Set SMTP server name objSMTP.ServerName = "mail.server.com" ' OAuth 2.0 authentication objSMTP.AuthMethod = 8 objSMTP.UserName = "username" ' Usually, email address objSMTP.Password = "access_token" ' You get it from the mail service provider using their proprietary API ' Set message properties objSMTP.FromAddr = "me@mydomain.com" objSMTP.ToAddr = "you@yourdomain.com" objSMTP.Subject = "Message in HTML format" ' Set HTML format for the body objSMTP.BodyFormat = 1 ' Place HTML contents into the body objSMTP.BodyText = "<html>This word is <b>bold</b></html>" ' Send it! objSMTP.Send
<% Dim objSMTP ' Create mailer component Set objSMTP = Server.CreateObject("MailBee.SMTP") ' Unlock SMTP component objSMTP.LicenseKey = "put your license key here" ' Set SMTP server name objSMTP.ServerName = "mail.server.com" ' OAuth 2.0 authentication objSMTP.AuthMethod = 8 objSMTP.UserName = "username" ' Usually, email address objSMTP.Password = "access_token" ' You get it from the mail service provider using their proprietary API ' Set message properties objSMTP.FromAddr = "me@mydomain.com" objSMTP.ToAddr = "you@yourdomain.com" objSMTP.Subject = "Message in HTML format" ' Set HTML format for the body objSMTP.BodyFormat = 1 ' Place HTML contents into the body objSMTP.BodyText = "<html>This word is <b>bold</b></html>" ' Send it! objSMTP.Send %>See Also: