Solved

VB.Net - o365 and Email

Posted on 2016-09-12
7
29 Views
Last Modified: 2016-09-13
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
0
Comment
Question by:Jimbo99999
  • 4
  • 3
7 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 41795024
What are you using to send emails? Can you show some code?
0
 

Author Comment

by:Jimbo99999
ID: 41795047
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(" ")
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 41795222
so you are using the arclab library? Better contact them directly!
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 41795229
if you want to switch to the builtin .Net library, have a look at http://emoreau.com/Entries/Articles/2007/09/Using-SystemNetMail.aspx
0
 

Author Comment

by:Jimbo99999
ID: 41795246
That is an excellent article.  I am going to try it out here in a little bit.

Thanks,
jimbo99999
0
 

Author Comment

by:Jimbo99999
ID: 41796764
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
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 41796770
this is tricky!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now