Last active
August 29, 2015 13:56
-
-
Save dck-jp/9004678 to your computer and use it in GitHub Desktop.
CdoMail.cls TestCode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Sub CdoMailTest() | |
Dim mail As New CdoMail | |
Call mail.Configure("oreore@mailsagi.com", _ | |
"smtp.server.com:25", _ | |
cdoBasic, "userName", "pass", _ | |
False) | |
Call mail.NewMail | |
Call mail.SetAddress("obachan@mail.com") | |
Call mail.SetMessage("至急乞う", _ | |
"添付ファイルに記載の口座に100万円振り込んで!") | |
Call mail.AddAttachments("bankAccountList.7zip") | |
Call mail.SendMail | |
End Sub | |
Sub CdoMailTestQuick() | |
Dim mail As New CdoMail | |
Call mail.Configure("ore.is@jibun.net", _ | |
"smtp.server.com:25", _ | |
cdoAnonymous) | |
Call mail.QuickSendMail("x@mail.com", _ | |
"現状報告", "ここをベースキャンプとする。") | |
End Sub | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment