📄 code34.txt
字号:
程序段34
这段程序用来显示邮件用户ghy的详细信息,并允许编辑。
mailSession mSes
mailMessage mMsg
mailRecipient mRec
int mNbr
mailReturnCode mReturn
mSes=create mailSession
//邮件用户“ghy”
mReturn=mSes.mailLogon('ghy','PASSWORD',mailNewSession!)
if mReturn <> mailReturnSuccess! then
MessageBox("MAIL LOGON",'MA MAIL LOGON FAILURE!')
Return
end if
//得到“ghy”的一些信息
mReturn=mSes.mailResolveRecipient(mRec)
if mReturn <> mailReturnSuccess! then
MessageBOx("mail ResolveRecipient",'MA MAIL'+'RESOLE
RECipIENT FAILURE!')
Return
end if
//在窗口显示“ghy”的详细信息,并充许修改之
mReturn=mSes.mailRecipientDetails(mRec,TRUE)
if mReturn <> mailReturnSrccess! then
MessageBox("Mail RecipentDetails",'MS MAIL'+'RECIPIENT'+ &
+' DETAILS FAILURE!')
Return
end if
mSes.mailLogoff( )
destroy mSes
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -