Rank: Newbie
Groups: Registered
Joined: 10/9/2014(UTC)
Posts: 0
Location: Karawang
Please advise syntax for add attachment and CC (email recipient) on vbscript following is my program : ============================================= Dim oSmtp Set oSmtp = CreateObject("EASendMailObj.Mail") oSmtp.LicenseCode = "TryIt" oSmtp.ServerAddr = "smtp.gmail.com" ' Set User Authentication oSmtp.UserName = "xxx@gmail.com" oSmtp.Password = "xxx" ' Enable TLS Connection oSmtp.SSL_init oSmtp.SSL_starttls = 1 oSmtp.Subject = "test for ssl" oSmtp.BodyText = "test body" oSmtp.FromAddr = "xxx@gmail.com" oSmtp.AddRecipient "Support Team", "xxx@gmail.com", 0 If oSmtp.SendMail() = 0 Then msgbox "Message delivered" Else msgbox oSmtp.GetLastErrDescription() End If oSmtp.SSL_uninit
Rank: Administration
Groups: Administrators
Joined: 11/11/2010(UTC) Posts: 1,154
Thanks: 9 times Was thanked: 55 time(s) in 55 post(s)
Hi, here is the example: oSmtp.AddRecipient "CC Team", "cc@gmail.com", 1 'add cc oSmtp.AddAttachment "d:\test.jpg"
Forum Jump
EmailArchitect Support
Email Component Development
- EASendMail SMTP Component - .NET Version
- EASendMail SMTP Component - Windows Store Apps
- EASendMail SMTP ActiveX Object
- EAGetMail POP3 & IMAP4 Component - .NET Version
- EAGetMail POP3 & IMAP4 ActiveX Object
Exchange Server and IIS SMTP Plugin
- DomanKeys/DKIM for Exchange Server and IIS SMTP
- Disclaimer and S/MIME for Exchange Server and IIS
EmailArchitect Email Server
- EmailArchitect Email Server (General)
- EmailArchitect Email Server Development
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.