如何在 Jmail 中发送 SSL 电子邮件?
大家我都用vb6发邮件。我遇到过一种情况,我需要通过 Jmail 安全发送它。 如何在 Jmail 中发送 SSL 电子邮件?
这是我当前的代码,我也需要它与 SSL 一起使用。
Set objEmail = CreateObject("JMail.Message")
With objEmail
.From = gcFromAddress
.FromName = gcFromAddress
.AddRecipient cEmailAddress
.Subject = "" & mrsReportData("SubdivisionName").Value
End With
objEmail.Send (gcSMTPServerAddress & ":" & gcSMTPServerPort)
Everyone I am using vb6 to send out emails. I have come across a situation where i need to send it Secured via Jmail.
How do i send a SSL email in Jmail?
Here is my current code, I need it to work with SSL as well.
Set objEmail = CreateObject("JMail.Message")
With objEmail
.From = gcFromAddress
.FromName = gcFromAddress
.AddRecipient cEmailAddress
.Subject = "" & mrsReportData("SubdivisionName").Value
End With
objEmail.Send (gcSMTPServerAddress & ":" & gcSMTPServerPort)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用.net非常简单
首先在.net示例中创建dll项目(http://jumbloid.blogspot.com/2009/12/making-net-dll-com-visible.html),
然后在vb6中使用它
Use .net for that is very easy
First create dll proyect in .net example here (http://jumbloid.blogspot.com/2009/12/making-net-dll-com-visible.html)
second use it in vb6
不知道 JMail 是什么,但是,这里是从 VB 通过 SSL 发送邮件的代码:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=71899&lngWId=1
快速检查代码表明它是相当有问题。然而,也许这是如何实施的一个很好的提示。
Don't know what JMail is, however, here's code for sending mail per SSL from VB:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=71899&lngWId=1
A quick check of the code however has shown it is quite buggy. Maybe however it is a good hint how to implement.