Public Function Fsyj(StrFsyx As String, StrFsmm As String, StrFsbt As String, StrFsnr As String, StrFsfw As String, StrJsyx As String) As Boolean
strName = "http://schemas.
Set objEmail = CreateObject("CDO.Message")
Fsyj = False
objEmail.From = Str(b)
objEmail.To = Str("XXXXXXX")
objEmail.Subject = Str("XXXXXXX")
objEmail.Textbody = Str(a)
objEmail.Configuration.Fields.Item(strName & "sendusing") = 2
objEmail.Configuration.Fields.Item(strName & "smtpserver") = Str("smtp.)
objEmail.Configuration.Fields.Item(strName & "smtpserverport") = 25
objEmail.Configuration.Fields.Item(strName & "smtpauthenticate") = 1
objEmail.Configuration.Fields.Item(strName & "sendusername") = Left(StrFsyx, InStr(StrFsyx, "@") - 1)
objEmail.Configuration.Fields.Item(strName & "sendpassword") = Str(c)
objEmail.Configuration.Fields.Update
objEmail.Send
Fsyj = True
End Function
我想在其他地方调用这个自定义的函数,在么调用?(我对于函数自定义无基础,都是自学的)