使用Winsock发送带有附件的邮件-VISUAL BASIC& [英] Sending mail with attachment using winsock - VISUAL BASIC &

查看:67
本文介绍了使用Winsock发送带有附件的邮件-VISUAL BASIC&的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助,以便使用Winsock将文件附加到邮件.

I need help in order to attach a file to a mail using winsock.

我使用以下代码发送邮件,并且可以正常运行
I use the following code to send the mail and it works OK

推荐答案

您好ziopulcher,

您需要将其转换为base64字符串.如果您使用自己的代码执行此操作,则应阅读 www.ietf.org/ rfc / rfc 0821.txt以同意基于 评论请求(rfc)的标准.我不确定rfc821是否是最新的,但是您可以搜索smtp和rfc来获取所有这些信息.
Hi ziopulcher,

you need to convert it to base64 string. If you are doing this by your own code you should read www.ietf.org/rfc/rfc0821.txt to agree with the standard based on Requests for Comments  (rfc). i don`t know exactly if the rfc821 is the latest one, but you can just search for smtp and rfc to get all of them.


这篇关于使用Winsock发送带有附件的邮件-VISUAL BASIC&的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆