寫一支程式,可以從個人電腦使用notes client寄信
1.用notepad++寫程式
VBScript如下:
begin----------------------------------------------------------------------------------------------------
'VBScript 由Client PC使用notes client寄信
'執行時Notes Client必須開啟
Const EMBED_ATTACHMENT = 1454
Set nSession = CreateObject("Notes.NotesSession")
'Gets the current user’s mail database
Set db = nSession.GetDataBase("","")
If Not db.IsOpen = True Then
db.OpenMail
End If
Set doc = db.CreateDocument
doc.Form = "Memo"
doc.Sendto = "kitty@msn.com"
doc.Subject = "寄信測試"
doc.Body = "每天10:00系統會自動寄信,請於10:30檢查是否收到信並記錄收到信的時間,若超過30分鐘沒有收到信,表示異常,必須通知郵件管理員檢查。"
'Set up the embedded object and attachment and attach it
sAttachment = "d:\temp\aaaa.txt"
Set AttachME = doc.CreateRichTextItem("Attachment")
Set EmbedObj = AttachME.EmbedObject _
(EMBED_ATTACHMENT, "", sAttachment, "Attachment")
doc.Send(False)
end------------------------------------------------------------------------------------------------------
2.存檔到d:\temp\sendmail.vbs
3.開啟工作排程器,設定每天10:00執行此script寄信
4.注意事項
執行時Notes Client要先開啟。
2015年4月29日 星期三
2012年1月9日 星期一
學習程式設計的網站
學習程式設計的網站
Codecademy is the easiest way to learn how to code. It's interactive, fun, and you can do it with your friends.
網址:http://www.codecademy.com
開啟此網站必須使用Chrome、Firefox或Opera,若使用IE,網站會要求您安裝 Google Chrome Frame
2010年1月21日 星期四
2009年9月29日 星期二
OpenSky is a free service provided by Gizmo5
OpenSky is a free service provided by Gizmo5 which allows any mobile phone, web browser or IP aware phone network (SIP, asterisk, etc) to communicate with Skype users. OpenSky supports sending text messages and voice calls.
2009年6月25日 星期四
2009年6月5日 星期五
訂閱:
文章 (Atom)
ubuntu 安裝完kubernetes後做apt-get update會出現錯誤
root@k8s02:~# sudo apt-get update 已有:1 http://tw.archive.ubuntu.com/ubuntu xenial InRelease 已有:2 http://tw.archive.ubuntu.com/ubuntu xenia...
-
有時候我們從各類資安通報收到通知微軟有安全性漏洞需要更新,通報有時會告知可下載微軟的KBxxxxxxx安全性更新進行安裝。 例如收到僅訊通報: 微軟所有Office Word版本之物件連結與嵌入(OLE)存在零時差漏洞,允許攻擊者遠端執行任意程式碼。 可上微軟網站下載更新...
-
EXCEL每一個版本開啟VBA編輯器的方式都不一樣,EXCEL 2007的VBA編輯器預設是隱藏的,開啟方式如下: 選擇 Excel 選項 勾選 在功能區顯示 [開發人員] 索引標籤 然後功能選單就會出現 發人員頁籤,其中就含VBA相關工具。 點選 V...
-
為符合資安要求,程式更版必須控管,並留存上線紀錄,同時為避免未經核可的程式更版發生,必須監控程式的異動。 監控的部分,這次規劃用Directort Monitor免費版,搭配自己寫的script達到監控發現程式異動時,立即用email及Line notify進行通報 Dir...