Link to home
Start Free TrialLog in
Avatar of Jimbo99999
Jimbo99999Flag for United States of America

asked on

VB.Net - o365 and Email

Good Day Experts!

Recently our email here was updated to o365.  Now my VB.Net system emailing routines are failing.  When there is an attachment I get no body in the email.  When there is no attachment I get data in the body.  Before o365 was installed the emailing had been working great for over 3yrs.

Can you help with any suggestions to look at?

Thanks,
jimbo99999
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

What are you using to send emails? Can you show some code?
Avatar of Jimbo99999

ASKER

Dim EmailBody As String
            EmailBody = "Error occurred during Export: "
            EmailBody = EmailBody & ExportException
            EmailBody = EmailBody & "<br><br>"
            EmailBody = EmailBody & Date.Now
            mailer = CreateObject("ArclabEmailToolbox.Mailer")
            mailer.Serial = "UZI2-0053-0197-3271-XCVY"
                                '************************'
                                'Connection to get Server'
                                '************************'

                                Dim Server As String = ""
                                --> retrieving mail URL from db and setting to Server variable
                                mailer.Server = Server
                                mailer.ESMTP = 0
                                mailer.ESMTPUser = "support@help.com"
                                mailer.ESMTPPassword = "chuckie"
                                mailer.From = "support@help.com"
                                mailer.FromName = "Report Generator"
                                mailer.AddCC(" ")
                                mailer.AddCC(" ")
                                mailer.AddCC(" ")
                                mailer.AddCC(" ")
                                mailer.AddTo(" ")
                                mailer.AddTo(" ")
so you are using the arclab library? Better contact them directly!
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That is an excellent article.  I am going to try it out here in a little bit.

Thanks,
jimbo99999
I had the following line of code that did not get pasted into my above code:

mailer.Priority = 1

When I commented out that line, my message body is back when there is an attachment.

Thanks,
jimbo99999
this is tricky!