It is currently Fri Jan 15, 2021 6:23 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: SendMail Outlook/Office365 broken in 5.71 (works in 5.62!)
PostPosted: Mon Feb 17, 2020 8:11 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Mar 11, 2009 4:06 pm
Posts: 338
Location: NL
Is broken in v 5.71 while it does work in 5.62

Code:
  InitNetwork()
  ; Be sure to use the right login and right password
  ;
  Login$ = "user@live.nl"
  If CreateMail(0, "user@live.nl", "Hello")
    AddMailRecipient(0, "info@user.com", #PB_Mail_To)

    Debug SendMail(0, "smtp.live.com", 587, #PB_Mail_UseSSL, Login$, "password")
  EndIf


Also tried smtp-mail.outlook.com

Port: 587
Encryption method: STARTTLS


Top
 Profile  
Reply with quote  
 Post subject: Re: SendMail Outlook/Office365 broken in 5.71 (works in 5.62
PostPosted: Mon Feb 17, 2020 10:37 am 
Offline
User
User

Joined: Fri Dec 06, 2013 11:57 am
Posts: 57
I had also some problems with different mail servers using port 587 with starttls and the #PB_Mail_UseSSL flag.

For me it looks, as if the #PB_Mail_UseSSL in 5.7x only works on full ssl connection, most providers do this on port 465, but I don't know, if this works on Live/Outlook.


Top
 Profile  
Reply with quote  
 Post subject: Re: SendMail Outlook/Office365 broken in 5.71 (works in 5.62
PostPosted: Tue Mar 31, 2020 7:40 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Mar 11, 2009 4:06 pm
Posts: 338
Location: NL
Didn't expect it fixed, but FYI: still broken in 5.72 (it instantly returns 0)
GMail works fine. Outlook not. What changed since 5.62?


Top
 Profile  
Reply with quote  
 Post subject: Re: SendMail Outlook/Office365 broken in 5.71 (works in 5.62
PostPosted: Tue Mar 31, 2020 4:47 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3164
Location: United Kingdom
Outlook email not working here either, what settings did you use to get Gmail working? I haven't had any luck with that either.

_________________
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject: Re: SendMail Outlook/Office365 broken in 5.71 (works in 5.62
PostPosted: Tue Mar 31, 2020 5:33 pm 
Offline
Addict
Addict
User avatar

Joined: Fri May 12, 2006 6:51 pm
Posts: 2801
Location: Germany
This is probably due to the advanced security settings of the e-mail providers.

Now the APP-ID is also checked and only registered programs are allowed to send mails. This setting was or is now also used by the MS mail server.

To send via smtp with gmail-server, you have to change your security settings on the website, so that your own programs can send mails from PB.
This will probably now also be the case with MS-Mailserver.

After changing the security settings of Gmail once for testing purposes, I was able to send mails from the PB program as well.

But for security reasons I deactivated this again.

Translated with www.DeepL.com/Translator (free version)

_________________
My Projects ThreadToGUI / OOP-BaseClass / OOP-BaseClassDispatch / EventDesigner V3
PB v3.30 / v5.70 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace


Top
 Profile  
Reply with quote  
 Post subject: Re: SendMail Outlook/Office365 broken in 5.71 (works in 5.62
PostPosted: Tue Mar 31, 2020 6:49 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3164
Location: United Kingdom
Thanks for the info, I'll take a closer look.

_________________
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject: Re: SendMail Outlook/Office365 broken in 5.71 (works in 5.62
PostPosted: Wed Apr 01, 2020 1:06 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Mar 11, 2009 4:06 pm
Posts: 338
Location: NL
Security settings can be causing problems, but not in this case. Already checked.. Like I said: it still works fine in PB 5.62. Thunderbird also connects just fine. Something is breaking it in any PB version > 5.62.


Top
 Profile  
Reply with quote  
 Post subject: Re: SendMail Outlook/Office365 broken in 5.71 (works in 5.62
PostPosted: Wed Apr 01, 2020 1:55 am 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3164
Location: United Kingdom
I managed to get GMail connecting by adding an 'app password' from the google security settings. I don't think this is related to outlook email though - I too think that's a different issue.

_________________
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system


Top
 Profile  
Reply with quote  
 Post subject: Re: SendMail Outlook/Office365 broken in 5.71 (works in 5.62
PostPosted: Sat Oct 17, 2020 8:24 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Mar 11, 2009 4:06 pm
Posts: 338
Location: NL
Still broken in 5.72 and latest 5.73 beta 2.

Quite a problem since Outlook/Hotmail/Office 365 usage is not a small percentage of market...
Hope it gets attention. Again: works still fine in old v 5.62 so something broke it.

Code instantly returns 0 (failed) without even trying it seems.


Top
 Profile  
Reply with quote  
 Post subject: Re: SendMail Outlook/Office365 broken in 5.71 (works in 5.62
PostPosted: Mon Nov 23, 2020 12:51 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jun 11, 2004 7:07 am
Posts: 653
Any news with the new beta?
Here this function don't work (SendMail returns 0) no matter which e-mail address and provider I try :cry:


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye