int WINAPI icePub _ sendMail(char * struser name,char *strPassword,char *strSmtpServer,char *sendMail,char *toMailList,char *strSubject,char *strText,char *strAttachmentsList)
輸入:strUsername smtp用戶名。
StrPassword用戶密碼
StrSmtpServer smtp服務器
SendMail發件人電子郵件地址
收件人電子郵件地址列表,多個地址用分號分隔。
主題標題
StrText文本內容
附件的文件名列表,用分號分隔。
輸出:
私有聲明函數icePub _ sendMail Lib“icepubdll . dll”(ByVal strusername為字符串、ByVal strPassword為字符串、ByVal strSmtpServer為字符串、ByVal sendMail為字符串、ByVal toMailList為字符串、ByVal strSubject為字符串、ByVal strText為字符串、ByVal strAttachmentsList為字符串)為整數
將a2標註為整數
A2 = icepub _ sendmail ("ahuinuli "," 112233 "," smtp.tom.com "," ahuinuli @ tom.com "," tomail @ sina.com "," Title: ice601e。,“D:\ice601e.rar”)