看别人的代码是要消化他的技术,不是要你直接用他的东西去运行。
VB QQ群:47715789
难道说你们不肯帮我啊??
这对你们来说不是很难对吧
应该助人为了乐,对吗
不是不肯帮你,而是我用你说的网页上的代码直接就运行成功了。你还要我怎么改?
Private Sub SubSendMail(StrDZ As String, StrUserName As String, StrPWD As String, StrSubject As String, StrText As String)
MAPISession1.UserName = StrUserName
MAPISession1.Password = StrPWD
MAPISession1.SignOn
MAPIMessages1.SessionID = MAPISession1.SessionID
MAPIMessages1.Compose
MAPIMessages1.RecipAddress = StrDZ '注意这里就是了
MAPIMessages1.MsgSubject = StrSubject
MAPIMessages1.MsgNoteText = StrText
MAPIMessages1.ResolveName
MAPIMessages1.Send
MAPISession1.SignOff
End Sub
Private Sub Form_Load()
SubSendMail "Joforn", "Joforn", "", "Test", "Text the Email"
End Sub
[此贴子已经被作者于2007-6-17 9:53:34编辑过]