Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET SMTP

 AfterLogic Forum : MailBee.NET SMTP
Subject Topic: SMTP IBM Verse Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
toledo.carolina
Newbie
Newbie


Joined: 23 November 2017
Location: Brazil
Online Status: Offline
Posts: 2
Posted: 23 November 2017 at 3:25pm | IP Logged Quote toledo.carolina

I'm trying to use a macro / vba code to send massive emails using smtp but not able to . I don't get any error / exception but also the e-mail is not sent

I tried using port 25 , 465 and 587 already

Sub send_emaill()

Dim myMail As CDO.Message
Set myMail = New CDO.Message

myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.notes.na.collabserv.com"
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "myid@br.ibm.com"
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "mypassword"
myMail.Configuration.Fields.Update

With myMail
.Subject = "Test SMTP"
.From = "myid@br.ibm.com"
.To = "other@br.ibm.com"
.BCC = ""
.TextBody = "Test SMTP"
'.AddAttachment "C:\Users\takyar\Desktop\email-via-gmail.txt"
End With
On Error Resume Next
myMail.Send
MsgBox ("Mail has been sent")
Set myMail = Nothing

End Sub
Back to Top View toledo.carolina's Profile Search for other posts by toledo.carolina
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6038
Posted: 23 November 2017 at 11:01pm | IP Logged Quote Igor

Not sure if the request belongs in here. Are you actually using MailBee.NET Objects anywhere in your application? Your code doesn't contain any indication of that.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide