Send Email over SMTP office365

This Forum is for the use of End Users requiring help and assistance for Tracker Software's PDF-Tools.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Post Reply
Xmedia
User
Posts: 48
Joined: Thu Aug 12, 2021 12:41 am

Send Email over SMTP office365

Post by Xmedia »

Hello, everyone,
When running in PDF-Tools, I wanted to send an e-mail without a dialog being displayed, but with the e-mails being sent directly to the SMTP server.
But this does not work with Office365!

Can someone from the PDF Tools team help me with this?

According to the IT staff, the registration does not work correctly with Office365. The credentials are correct and will work on another software.
(with PDF X Change it is the same problem)

Have someone an idea?



Kind Regards
Xmedia
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6813
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Send Email over SMTP office365

Post by Paul - Tracker Supp »

Hi Xmedia,

I just tested this and it is working for me. What settings are you using for the SMTP?

Use the email address for the "From" and "Username" fields, and use port 587 with TLS and it should work.
image.png
If you turn on all these logging options you should see feedback as to what is happening in the Tool Report at the bottom:
image1.png
I hope that helps.
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Xmedia
User
Posts: 48
Joined: Thu Aug 12, 2021 12:41 am

Re: Send Email over SMTP office365

Post by Xmedia »

Hello Paul,

Thanks for the quick feedback.
I checked the settings again and they were set identically.
But I still get the same error message:

Tool run results: the specified handle is invalid

Do you know this error message?

Greetings
Xmedia
Xmedia
User
Posts: 48
Joined: Thu Aug 12, 2021 12:41 am

Re: Send Email over SMTP office365

Post by Xmedia »

Image
Attachments
image.png
Xmedia
User
Posts: 48
Joined: Thu Aug 12, 2021 12:41 am

Re: Send Email over SMTP office365

Post by Xmedia »

image.png
The same thing at home...
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6813
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Send Email over SMTP office365

Post by Paul - Tracker Supp »

Hi Xmedia,

that looks like the Editor not PDF-Tools. The two share common code and the set up is the same and it should work the same in both, but for the sake of the troubleshooting can you confirm which you are doing?

Or are both Tools and the Editor failing the same way?
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Xmedia
User
Posts: 48
Joined: Thu Aug 12, 2021 12:41 am

Re: Send Email over SMTP office365

Post by Xmedia »

Hi Paul,

Yes its the same:

I tried the following:

Attempt 1:
All settings from "Office 365 Account 1" entered, both in PDF XChange and in PDF Tools. Everything from home...
image.png
image(1).png

Attempt 2:
All settings from "Office 365 Account 2" entered, both in PDF XChange and in PDF Tools. Everything from home...
image(1)(1).png
image(1)(1)(1).png

Attempt 3:
All settings from "Office 365 Account 1" entered, both in PDF XChange and in PDF Tools. Everything at work....
image(1)(1)(1)(1)(1).png
image(1)(1)(1)(1)(1).png (13.64 KiB) Viewed 1510 times
image(1)(1)(1)(1).png
Since I've tried using the same account settings in 2 different places, I'm assuming it can't be the firewall, etc

Kind Regards
Xmedia
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6813
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Send Email over SMTP office365

Post by Paul - Tracker Supp »

Thanks for that Xmedia,

It's time to check our software versions.

What version of the Editor and Tools are you running? For troubleshooting we need you to be using the current version, 9.4.362.0 as I write this. Please confirm this issue is happening with the current build. Help then About will report the version number and Help then Check for Updates to get the newest if yo are not already there.

We also need to know what version of Windows you are running. There may be an issue with changes to TLS. If you type "winver.exe" at the Windows Start menu you can get this:
image.png
and it will show you what we need to see:
image1.png
looking forward to seeing this.
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Xmedia
User
Posts: 48
Joined: Thu Aug 12, 2021 12:41 am

Re: Send Email over SMTP office365

Post by Xmedia »

Hi Paul

I have already installed the latest version on Tuesday last week.
image.png
image.png (22.21 KiB) Viewed 1494 times
And now the info on Windows:
image(1).png
image(1).png (10.28 KiB) Viewed 1494 times
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8371
Joined: Wed Jan 03, 2018 6:52 pm

Re: Send Email over SMTP office365

Post by TrackerSupp-Daniel »

Hello, Xmedia

I have some good news (and a little bad news).
The good news is, I have managed to reproduce this issue, and our Dev team is looking into it now.
The bad news is, With the release coming tonight, it is too late to implement any new fixes into the release. Hopefully this is something that can be resolved with tweaks to settings either in our app, or in your outlook account, but I cannot promise that just yet.

WE will get back to you with more details on this as soon as we have finished the investigation.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8371
Joined: Wed Jan 03, 2018 6:52 pm

Re: Send Email over SMTP office365

Post by TrackerSupp-Daniel »

Hello again,

Another bit of followup, The primary message you are seeing:
image.png
image.png (36.31 KiB) Viewed 1478 times
Indicates that there is no account under the outlook SMTP system to utilize, this means that either your SMTP is not configured correctly, or your email account is not actually under the outlook system, perhaps it is through another, such as Gmail, or requiring a custom connection.

As for the issue utilizing the custom SMTP, as per the image you sent in the "Add/Edit SMTP server" dialog, this is very sensitive to your server particulars, and can be interrupted by firewalls and other security features if not configured correctly through BOTH our app and you mail server. You may need to ask your Email system Manager to help you configure this correctly, as some services require that the mail server security be configured to allow third party app access.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Xmedia
User
Posts: 48
Joined: Thu Aug 12, 2021 12:41 am

Re: Send Email over SMTP office365

Post by Xmedia »

Hi Daniel,

This already sounds very promising :-)
I like to wait here for your new info.

Regarding the message "Error MailLib":
Yes, I will discuss this with our system administrator.


Many thanks for now
Adrian
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8371
Joined: Wed Jan 03, 2018 6:52 pm

Re: Send Email over SMTP office365

Post by TrackerSupp-Daniel »

Hello, Xmedia

Sorry Adrian, That blurb up there was new new info we had to add, that is all we could discover from the investigation on this end. I hope that trying those suggestions helps to resolve the issue.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Xmedia
User
Posts: 48
Joined: Thu Aug 12, 2021 12:41 am

Re: Send Email over SMTP office365

Post by Xmedia »

Hello Daniel,

In the company, I have already checked a few points with the system administrator.

- We have checked all settings again.
- We have checked all ports
- We tried to send various emails, but nothing appeared on the network or in our firewall.
- The conclusion is that the email is not sent by the PDF-Tools software at all.

The message still remains the same:
image.png

If you can reproduce the error yourself, we have a point that you can work with in development.

I am looking forward to the solution
Many thanks in advance

Kind Regards
Xmedia
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8371
Joined: Wed Jan 03, 2018 6:52 pm

Re: Send Email over SMTP office365

Post by TrackerSupp-Daniel »

Hello, Xmedia

Our Devs are looking into this once again, though I will admit I am stumped on this one personally... In the meantime, my next best guess would be to suggest you ensure you have tried all three outlook options and ensured that none of them work for these tools.
image.png
If one of these does work, please let me know which one it was, so we can compare and see what differences may be in place.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Xmedia
User
Posts: 48
Joined: Thu Aug 12, 2021 12:41 am

Re: Send Email over SMTP office365

Post by Xmedia »

Hi,
I have now checked one setting again.
And now also configured all 3 variants and tried to send an email.
You were also able to detect the "error".
Have you found a solution for yourself?
image.png


Outlook Webmail:
It asks for the password over and over again here, but no email is sent. I know this behaviour from other software too. Since a change in the Microsoft API, this loop occurs.
image(1)(1)(1)(1)(1).png
image.png

Outlook SMTP:
image(1)(1)(1)(1).png
image(1)(1)(1)(1).png (44.48 KiB) Viewed 1440 times
image(1).png

SMTP:
image(1)(1)(1).png
image(1)(1).png
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8371
Joined: Wed Jan 03, 2018 6:52 pm

Re: Send Email over SMTP office365

Post by TrackerSupp-Daniel »

Hello, Xmedia

Unfortunately my reproduction of the issue was a red-herring cause by my own blunder in the configuration... After re-checking the details It worked as expected for me. Now with that said, the Dev team is preparing a specialized Debug build for you which should be able to log the process and errors you are encountering, so that you can reproduce the issue once, and then we can investigate the data and try to locate where the fault lies.

I will send you an email with that debug version either later today or early tomorrow. If the email address you used to create your forum account is sufficient, No action is necessary on your end. If you would like me to send the email to a different address, please send us an email from the address in question with a link to this post, asking that I send the debug build to you there.

[update]: In the process of making the debug build, one of our devs spotted an issue that could very likely have been the cause of the problem. They are fixing that right now, so that when we send you the build to test, hopefully it is already fixed! This fixing process does mean it might take another day or two before I can send you the build, but hopefully this means we can cut out the step of needing to go back and forth debugging the issues, and get you a solution faster.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Xmedia
User
Posts: 48
Joined: Thu Aug 12, 2021 12:41 am

Re: Send Email over SMTP office365

Post by Xmedia »

Hi Daniel

Very good!
Then I look forward to testing :D

Kind Regards
xmedia
User avatar
Dimitar - Tracker Supp
Site Admin
Posts: 1776
Joined: Mon Jan 15, 2018 9:01 am

Send Email over SMTP office365

Post by Dimitar - Tracker Supp »

:)
Xmedia
User
Posts: 48
Joined: Thu Aug 12, 2021 12:41 am

Re: Send Email over SMTP office365

Post by Xmedia »

Are there any news?
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8371
Joined: Wed Jan 03, 2018 6:52 pm

Re: Send Email over SMTP office365

Post by TrackerSupp-Daniel »

Hello, Xmedia

Yes, the issue has to do with something a bit more intrinsic than we can offer a hotfix for, but thankfully we do know what the cause is now. As such, you will unfortunately need to wait until the next release is available before you can use this feature with your outlook account.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Post Reply