當前位置:法律諮詢服務網 - 法律講堂 - SMTP協議下發送HTML文檔和附件的命令是什麽?最好有個例子!

SMTP協議下發送HTML文檔和附件的命令是什麽?最好有個例子!

原型:

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”)

  • 上一篇:吉林省長春市寬城法院開展普法進校園活動。
  • 下一篇:檢察公益訴訟範圍的九個領域
  • copyright 2024法律諮詢服務網