1

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)
Rico
  • 1,258
  • 4
  • 17
  • 35

2 Answers2

0

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

Carlos Cocom
  • 937
  • 1
  • 8
  • 23
  • This answer doesn't really make sense to the question. – Rico Sep 30 '11 at 17:12
  • upss yeah, sorry. But maybe use wrapper of smtpclient have sense here example with ssl http://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient.enablessl.aspx. good luck – Carlos Cocom Oct 01 '11 at 14:39
0

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.

stracktracer
  • 1,862
  • 5
  • 24
  • 37