Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Modern authentication

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    email_smtp_open(P pSocket ,C smtp_server [,N port [,C username [,C password [,C mode ]]]]).
    There are only so many parameters to this Alpha function. If there is a required data element required to pass their authentication process upon submission other than what is in the parameters sent by the existing Alpha function, then I would believe that Alpha does indeed have something to do with it.

    This is a disturbing thread, yet I am very thankful for it, because our IT backup group has been pushing for us to convert to Microsoft 365. More fuel to how the decisions by Big Tech can produce crippling consequences.
    Last edited by Mike Wilson; 10-19-2021, 11:40 AM.
    Mike W
    __________________________
    "I rebel in at least small things to express to the world that I have not completely surrendered"

    Comment


      #17
      It is even more involved than that Mike. In order to utilize SMTP securely(without using a set password) we have to be able to communicate with Office 365(or any other email client) to be authenticated and then aquire a Token which is basically a short lived password. I believe we can do this with HTTP_Fetch() or HTTP_Post() but I cannot test this without Office 365 being set up to allow this...so i cannot verify that it will work. The client's email IT refuses to set it up so the project is no longer being considered. Other current email sending software that I have seen(such as Mandrill/MailChimp) also do not meet the OAuth standards.

      I believe all that Alpha can really add to their email functions is to have an argument that will enable the use of SPF/DKIM when sending...If HTTP_Fetch() or HTTP_Post() does not work then they would also need to add something as well...we won't know until someone has the capability of testing them.
      Mike
      __________________________________________
      It is only when we forget all our learning that we begin to know.
      It's not what you look at that matters, it's what you see.
      Henry David Thoreau
      __________________________________________



      Comment


        #18
        Mike C.
        Have you a colleague with 365 on board who will let you fiddle?
        I will ask on our RAD group if anyone has used this.

        Edit.
        This is spookie!
        We have a council project being developed which will cost a bunch of money.
        The Head of Highways had all my email about it "junked" afterthey migrated to a managed 365.
        A Mayor, I usually get a quick response. I will be complaining!
        Last edited by Ted Giles; 10-19-2021, 01:13 PM.
        See our Hybrid Option here;
        https://hybridapps.example-software.com/


        Apologies to anyone I haven't managed to upset yet.
        You are held in a queue and I will get to you soon.

        Comment


          #19
          Ted, I use Office 365 via a large QuickBooks consulting company in which I am their main subcontractor for creating custom reporting and apps for their clients. They have an outside IT department that would have to be paid to set up anything regarding this...unless sending emails via SMTP becomes a common occurrence, they are not going to spend money for my testing. :-(

          If you(or anyone here) has a way to test out using SMTP OAuth it would be great. I would definitely want to see if it can be done using current Alpha functions.
          Mike
          __________________________________________
          It is only when we forget all our learning that we begin to know.
          It's not what you look at that matters, it's what you see.
          Henry David Thoreau
          __________________________________________



          Comment


            #20
            also, use Alpha to send to a special account of theirs, and they can then send themselves
            Cole Custom Programming - Terrell, Texas
            972 524 8714
            [email protected]

            ____________________
            "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

            Comment


              #21
              The problem, as described, is the firm that handles the clients email wants their oauth to be used to send email, but they haven't divulged the method to accomplish that.
              Until that happens, things are as deadlocked as congress.
              As for MicroSoft and Alpha, I had a lengthy call with MS support about options for 3rd party apps sending email via O365.
              They are not abandoning my preferring authorization method, they just force new(er) clients to enable the feature.
              As for MS Oauth, you get the process in motion by registering your app with Azure AD.
              I'll know more once I free up enough time to actually mess around with it.
              Gregg
              https://paiza.io is a great site to test and share sql code

              Comment


                #22
                I believe that the app has to be registered within the Office 365/Azure that the client has. This app is a very simple one. It is designed to send an email to each manager within the company network(most in different offices, buildings, states...) and include specified attachments. Right now they are either using USPS or sometimes an email to do this for each manager(about 200 of them). They wanted to do this more or less automatically just by pushing a button within an app....which is what I built for them.

                It really should not be that hard to do once Office 365/Azure is set up to do so. Even though they have rejected the application I built(I will still be billing them as it will work under the initial paradigm they told me to build it for), I still want to figure out how to do this for future clients. I just need to be able to test it. I believe any Office 365/Azure set up will work if I have the correct information from anyone...and that an app name is registered. Once set up I will just try to use Alpha's HTTP functions to connect and see if I can get an authorization code which then will allow me to obtain a token. If this is accomplished then I believe Alpha's SMTP functions should work.

                I appreciate the responses here. I had hoped someone else had already been through this as I understand Microsoft has been planning to do this for about 2 years now and it simply got delayed for various reasons. I had no clue about it as I have only built a few email apps over the years.
                Mike
                __________________________________________
                It is only when we forget all our learning that we begin to know.
                It's not what you look at that matters, it's what you see.
                Henry David Thoreau
                __________________________________________



                Comment


                  #23
                  For what it's worth, this is the registration that starts the process.
                  The folks at MicroSoft have actually been quite friendly and helpful.
                  Capture.PNG
                  Gregg
                  https://paiza.io is a great site to test and share sql code

                  Comment


                    #24
                    Originally posted by MikeC View Post
                    I believe that the app has to be registered within the Office 365/Azure that the client has. This app is a very simple one. It is designed to send an email to each manager within the company network(most in different offices, buildings, states...) and include specified attachments. Right now they are either using USPS or sometimes an email to do this for each manager(about 200 of them). They wanted to do this more or less automatically just by pushing a button within an app....which is what I built for them.

                    It really should not be that hard to do once Office 365/Azure is set up to do so. Even though they have rejected the application I built(I will still be billing them as it will work under the initial paradigm they told me to build it for), I still want to figure out how to do this for future clients. I just need to be able to test it. I believe any Office 365/Azure set up will work if I have the correct information from anyone...and that an app name is registered. Once set up I will just try to use Alpha's HTTP functions to connect and see if I can get an authorization code which then will allow me to obtain a token. If this is accomplished then I believe Alpha's SMTP functions should work.

                    I appreciate the responses here. I had hoped someone else had already been through this as I understand Microsoft has been planning to do this for about 2 years now and it simply got delayed for various reasons. I had no clue about it as I have only built a few email apps over the years.
                    I wonder if you could use a different approach to this problem. Maybe you could solve this using an Office365 account and MS Power automate connectors. >You could just send your file to an Office365 acount and then use Power automate connectors to do the job further.

                    Kenneth

                    Comment


                      #25
                      I am not familiar with power automate connectors but if it uses SMTP OAuth then it might work.

                      I did find out that Microsoft will allow developers to have a 30-90 day Office 365 "sandbox" to use to develop applications. I will have to give this a try when I get a break from my ongoing projects. The client no longer is interested in pursuing this but I figure I had better learn how to accomplish this for future clients.
                      Mike
                      __________________________________________
                      It is only when we forget all our learning that we begin to know.
                      It's not what you look at that matters, it's what you see.
                      Henry David Thoreau
                      __________________________________________



                      Comment


                        #26
                        Originally posted by MikeC View Post
                        I am not familiar with power automate connectors but if it uses SMTP OAuth then it might work.

                        I did find out that Microsoft will allow developers to have a 30-90 day Office 365 "sandbox" to use to develop applications. I will have to give this a try when I get a break from my ongoing projects. The client no longer is interested in pursuing this but I figure I had better learn how to accomplish this for future clients.
                        What I did suggest is that you just send your file to an Office365 account email address (using Alphas SMTP). So you do not need any SMTP Oauth. Then use this accounts Power automate feature to process this email automatically (using emails subject filter in flow to separate email from others). You can process (send to others) many ways this emai if needed. But you need to have Office365 account or you need to use your customers account.

                        I have found that especially Office365 Power Automate is very interesting feature for Alpha developer. It makes things possible and opens doors. I recommend getting the premium connectors.

                        Edit: Power Automate is intresting because using connectors you can interact with Alpha Desktop application. There are many ways. Email is one, Sql Server is an other. But there are many other ways.

                        But the basic consept is that when something happens in database/email/onedrive/google sheets and so on you can do something using triggers. For example when you create a record in sql server using Alphas Desktop application office365 flow will note this automatically and use this data to create a business report and fills for example a Word template (you have created) and emails this word report to somebody.


                        Kenneth
                        Last edited by kkfin; 10-27-2021, 11:02 AM.

                        Comment


                          #27
                          MikeC did you ever get this working? I am dealing with a similar situation here. I have a simple grid used to send alerts to police commanders. It works perfectly with a generic gmail account, but if I try to use a more professional Office365 (agency) account, it will not send. In my case, our agency uses MFA (multi-factor authentication) which of course won't work with an Alpha SMTP function, so I created an "app password" to get around MFA, but that didn't work either. Then I had the company that manages our Office365 account disable the MFA option on this specific email address, and then tried it with the non-app password, and is still doesn't work.

                          Just wondering if you'd had any better luck?
                          Sergeant Richard Hartnett
                          Hyattsville City Police Department
                          Maryland

                          Comment


                            #28
                            The client required the use of OAuth. I found three ways to do this but they were not willing to set it up...and, of course, I could not set it up as it requires access to their Office 365 to make the necessary additions. So, even though I believe I have a way to use OAuth with SMTP, I have not verified that it works. I also have found an Office 365 sandbox that should allow me to test out the three ways on my own but have not done so as I currently have no projects now that require it. I will eventually do it though as a future client may want the same.
                            Mike
                            __________________________________________
                            It is only when we forget all our learning that we begin to know.
                            It's not what you look at that matters, it's what you see.
                            Henry David Thoreau
                            __________________________________________



                            Comment


                              #29
                              In your situation, make sure that the special password is generated via Office 365 to use as it is required for all third party apps to work....the client would also have to use this password for sending their emails once changed as well.
                              Mike
                              __________________________________________
                              It is only when we forget all our learning that we begin to know.
                              It's not what you look at that matters, it's what you see.
                              Henry David Thoreau
                              __________________________________________



                              Comment

                              Working...
                              X