 |
VFP 愛用者社區 本討論區為 Visual Foxpro 愛用者經驗交流的地方, 請多多利用"搜尋"的功能, 先查看看有無前例可循, 如果還有不懂的再發問. 部份主題有附加檔案, 須先註冊成為社區居民才可以下載.
|
上一篇主題 :: 下一篇主題 |
發表人 |
內容 |
garfield Site Admin

註冊時間: 2003-01-30 文章: 2160
第 1 樓
|
發表於: 星期四 四月 13, 2006 11:05 am 文章主題: |
|
|
請把你寫的程式碼貼上來,
大家幫你看一下是那裡有問題. _________________ 利用>>搜尋<<的功能會比問的還要快得到答案. |
|
回頂端 |
|
 |
garfield Site Admin

註冊時間: 2003-01-30 文章: 2160
第 2 樓
|
發表於: 星期四 四月 13, 2006 4:38 pm 文章主題: |
|
|
oMAPISession = create("MSMAPI.MAPISession")
oMAPIMessages = create("MSMAPI.MAPIMessages")
with oMAPISession
.logonui=.T.
.DownloadMail = .F.
.signon()
if .SessionID <= 0
messagebox('登入郵件程式失敗')
return .f.
endif
endwith
maddress = "matrix@ms34.hinet.net"
msubject = "測試主旨"
mNoteText = "xx 客戶您好:" +chr(13)+chr(10)
mfilename = ="f:\fareast_950409\file_1.txt"
with oMAPIMessages
.sessionid = oMAPISession.sessionid
*清除緩衝區
.compose()
.recipIndex = .recipCount
.recipDisplayname= alltrim(maddress)
.recipaddress = alltrim(maddress)
.reciptype=1 &&--1=收件者(內定值)
.ResolveName()
*郵件主旨
.msgsubject= msubject
*內容
.msgNoteText = mNoteText
.AttachmentIndex = .AttachmentCount
.AttachmentPathName = mfilename
.AttachmentName = justfname( mfilename )
endwith _________________ 利用>>搜尋<<的功能會比問的還要快得到答案. |
|
回頂端 |
|
 |
|
|
您 無法 在這個版面發表文章 您 無法 在這個版面回覆文章 您 無法 在這個版面編輯文章 您 無法 在這個版面刪除文章 您 無法 在這個版面進行投票 您 無法 在這個版面附加檔案 您 無法 在這個版面下載檔案
|
|