开发者

SMTP Problem with vb6

开发者 https://www.devze.com 2023-03-08 02:46 出处:网络
I am developing SMTP Client to send email fr开发者_运维问答om my application. I am able to send email but From field in the inbox of the destination email was empty.

I am developing SMTP Client to send email fr开发者_运维问答om my application.

I am able to send email but From field in the inbox of the destination email was empty.

It is showing (unknown sender).

Please suggest a workaround.


You need to add a

"From: NAME <EMAIL>" & vbCrLf 

To your header string.

Also, be sure to check out vbSendMail.dll. Not only is it a complete working dll you can just reuse - you also have the source to consult in case you insist (great learning experience?) on writing this by yourself.

0

精彩评论

暂无评论...
验证码 换一张
取 消