如何查看邮件的源代码方法技巧

如何查看邮件的源代码方法技巧,第1张

由于各种邮件客户端软件或Web方式的不同,造成查看的途径念键大各有差异。

比如, Foxmail

第一步:选中邮件,鼠标右击亮袭邮仔竖件的主题,在下拉菜单中选择“原始信息(Ctrl+I)...”,如下图:

第二步:在打开的“原始信息”窗口首先看到邮件头的信息,点击“全部”可看完整源码。

其他的,你可以百度一下。

3.71 icePub_sendMailText

l 函数原型

int WINAPI icePub_sendMailText(char *strUsername,char *strPassword,char *strSmtpServer,char *sendMail,char *toMailList,char *strSubject,char *strText)

输入:strUsername smtp用户名

strPassword 用户密携升蚂码

strSmtpServer smtp服务器

sendMail 发件人邮箱地址

toMailList 收件人邮箱地址

strSubject 标题辩埋

strText 文本内容

输出:

l VC连接Lib方式声明

__declspec(dllexport)

int WINAPI icePub_sendMailText(char *strUsername,char *strPassword,char *strSmtpServer,char *sendMail,char *toMailList,char *strSubject,char *strText)

l 动态调用例程笑带

VC sample 代码:

{

typedef int (WINAPI ICEPUB_SENDMAILTEXT)(char *strUsername,char *strPassword,char *strSmtpServer,char *sendMail,char *toMailList,char *strSubject,char *strText)

ICEPUB_SENDMAILTEXT *icePub_sendMailText = 0

HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll")

if(hDLLDrv)

{

icePub_sendMailText = (ICEPUB_SENDMAILTEXT *)GetProcAddress(hDLLDrv, "icePub_sendMailText")

}

if(icePub_sendMailText)

icePub_sendMailText("ahuinuli","112233","smtp.tom.com","ahuinuli@tom.com","mike@sina.com","标题:还好么?","文本:扉心祈梦,梦语问春天。")

if(hDLLDrv)

FreeLibrary(hDLLDrv)

}

3.69 icePub_receiveMailText

l 函数原型:

int WINAPI icePub_receiveMailText(char *strUsername,char *strPassword,char *strSmtpSever,char *strMailText,int TextMaxLen,char *strFenge,int deleteFlag)

输入:strUsername pop3用户名

strPassword 用户密码

strSmtpSever pop3服务器

TextMaxLen strMailText最大长度

StrFenge 每个邮件间分隔符串

DeleteFlag 收完是否删除邮标志

输出:strMailText 接收的邮件内容

l VC连接Lib方式声明

__declspec(dllexport)

int WINAPI icePub_receiveMailText(char *strUsername,char *strPassword,char *strSmtpSever,char *strMailText,int TextMaxLen,char *strFenge,int deleteFlag)

l 动态调用例程

VC sample 代码:

char buff[1024*30+1]

{

typedef int (WINAPI RECEIVEMAILTEXT)(char *strUsername,char *strPassword,char *strSmtpSever,char *strMailText,int TextMaxLen,char *strFenge,int deleteFlag)

RECEIVEMAILTEXT *icePub_receiveMailText = 0

HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll")

if(hDLLDrv)

{

icePub_receiveMailText = (RECEIVEMAILTEXT *)GetProcAddress(hDLLDrv, "icePub_receiveMailText")

}

icePub_receiveMailText("bigshuye","12345678","pop.tom.com",buff,1024*30,"\r\n\r\n",0)

}

AfxMessageBox(buff)

3.72 icePub_sendMail

l 函数原型:

int WINAPI icePub_sendMail(char *strUsername,char *strPassword,char *strSmtpServer,char *sendMail,char *toMailList,char *strSubject,char *strText,char *strAttachmentsList)

输入:strUsername smtp用户名

strPassword 用户密码

strSmtpServer smtp服务器

sendMail 发件人邮箱地址

toMailList 收件人邮箱地址

strSubject 标题

strText 文本内容

strAttachmentsList 附件文件名列表,以分号分隔多个附件

输出:

l VC连接Lib方式声明

__declspec(dllexport)

int WINAPI icePub_sendMail(char *strUsername,char *strPassword,char *strSmtpServer,char *sendMail,char *toMailList,char *strSubject,char *strText,char *strAttachmentsList)

l 动态调用例程

VC sample 代码:

typedef int (WINAPI ICEPUB_SENDMAIL)(char *strUsername,char *strPassword,char *strSmtpServer,char *sendMail,char *toMailList,char *strSubject,char *strText,char *strAttachmentsList)

ICEPUB_SENDMAIL *icePub_sendMail = 0

HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll")

if(hDLLDrv)

{

icePub_sendMail = (ICEPUB_SENDMAIL *)GetProcAddress(hDLLDrv, "icePub_sendMail")

}

if(icePub_sendMail)

icePub_sendMail("ahuinuli","112233","smtp.tom.com","ahuinuli@tom.com","mike@sina.com","标题:ice601e","文本:data error。","D:\\sys.tmp.rar")

if(hDLLDrv)

FreeLibrary(hDLLDrv)

3.68 icePub_receiveMail

l 函数原型:

int WINAPI icePub_receiveMail(char *strUsername,char *strPassword,char *strSmtpSever,char *strMailText,int TextMaxLen,char *strFenge,char *strFilename,int deleteFlag)

输入:strUsername pop3用户名

strPassword 用户密码

strSmtpSever pop3服务器

TextMaxLen strMailText最大长度

StrFenge 每个邮件间分隔符串

StrFilename 附件文件列表,多个附件则分号分隔

DeleteFlag 收完是否删除邮标志

输出:strMailText 接收的邮件内容

l VC连接Lib方式声明

__declspec(dllexport)

int WINAPI icePub_receiveMail(char *strUsername,char *strPassword,char *strSmtpSever,char *strMailText,int TextMaxLen,char *strFenge,char *strFilename,int deleteFlag)

l 动态调用例程

VC sample 代码:

char buff[1024*30+1]

char strFileNameList[1024*10]

{

typedef int (WINAPI RECEIVEMAILTEXT)( char *strUsername,char *strPassword,char *strSmtpSever,char *strMailText,int TextMaxLen,char *strFenge,char *strFilename,int deleteFlag)

RECEIVEMAILTEXT *icePub_receiveMailText = 0

HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll")

if(hDLLDrv)

{

icePub_receiveMailText = (RECEIVEMAILTEXT *)GetProcAddress(hDLLDrv, "icePub_receiveMailText")

}

icePub_receiveMailText("bigshuye","12345678","pop.tom.com",buff,1024*30,"\r\n\r\n",strFileNameList,0)

}

AfxMessageBox(buff)

http://dl.icese.net/dev.php?f=icePubDll.rar 下载


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/12321023.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-24
下一篇 2023-05-24

发表评论

登录后才能评论

评论列表(0条)

保存