Support » Plugin: Mail Integration for Office 365/Outlook by Cross Connected » parsererror elementor contact form

  • Resolved evildoer

    (@evildoer)


    I set up your plugin and got a parsererror when sending the form.

    Just to be clear, the from email is the Office 365 email address I set up >

    Any ideas ?

    Recommend another contact form plugin (other than C 7 ?

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter evildoer

    (@evildoer)

    I just noticed this warning on the final office 365 Authentication Page:

    Due to temporary differences in supported functionality, we don’t recommend enabling personal Microsoft accounts for an existing registration. If you need to enable personal accounts, you can do so using the manifest editor. Learn more about these restrictions.​

    Advanced settings
    Allow public client flows
    Enable the following mobile and desktop flows:
    Yes
    No
    App collects plaintext password (Resource Owner Password Credential Flow) Learn more
    No keyboard (Device Code Flow) Learn more
    SSO for domain-joined Windows (Windows Integrated Auth Flow) Learn more

    Plugin Author edwardcross

    (@edwardcross)

    So that message would suggest you have selected an alternative option involving personal accounts under Step 3 of the setup guide which isn’t supported. Or, you may have selected the right option under Step 3, but you are trying to register a personal account that doesn’t exist within your given tenancy registered for the authorisation app set up under Step 3.

    Note, personal accounts would be able to register with the authorisation app if the appropriate option is selected under Step 3. However, you would not be able to use this authorised personal account to send email via Microsoft Graph API mail service, as Microsoft does not support personal accounts for Graph API mail functions.

    • This reply was modified 8 months, 1 week ago by edwardcross.
    • This reply was modified 8 months, 1 week ago by edwardcross.
    Thread Starter evildoer

    (@evildoer)

    So, is it fixable ?

    If not, how can I remove your plugin and go with an SMTP plugin ?

    Plugin Author edwardcross

    (@edwardcross)

    That will depend on whether or not you are using a supported account type. Do you pay for Office 365/Exchange and is this the account you are trying to register with the plugin? If it is then I would need to investigate further, if you don’t and it’s a free Microsoft Account (i.e. Outlook, Hotmail, Live etc.) then it’s not fixable, because as the guide states, Microsoft do not support these accounts with their Graph API.

    If you wish to use another plugin, you just need to deactivate and delete it as shown in this guide: https://kinsta.com/blog/uninstall-wordpress-plugin/

    Thread Starter evildoer

    (@evildoer)

    This is a paid Office 365 account I am working on for a client.

    And they are getting perturbed that I am taking so long getting their contact form working.

    I have set up O 365 accounts before with NO plugins – just proper dns records.

    I noticed that – JAGGROUPLLC.onmicrosoft.com – is NOT set as default domain.

    My research says that it is normally set as the default.

    I WOULD like to fix your plugin if possible – if not too time consuming.

    Looking at my cPanel Configure Email Routing…..

    It is set to Automatically Detect Configuration : Local (recommended)

    As opposed to: Remote Mail Exchanger

    Just spit-ballin – trying to troubleshoot possible settings problems.

    I WOULD like to fix your plugin if possible – if not too time consuming.

    Whaddaya think ?

    Plugin Author edwardcross

    (@edwardcross)

    So cPanel configuration and DNS is irrelevant, as this plugin does not use PHP Mail or SMTP. It intercepts requests to wp_mail() stopping the email being sent via your webserver/email server. Instead it forwards the request over the Microsoft Graph REST API, using the Office 365 Account you register with the plugin to send the mail using Microsoft’s Servers. Your mail server and DNS/web server is therefore irrelevant.

    I would start by looking back at the guide and making sure that your Azure Active Directory Account is using the same Microsoft/365 Account/Tenancy as the account you wish the mail to be sent from (i.e. your clients Office 365 Account). This is where you need to make sure you are setting the authentication app created within Azure Active Directory to only “allow accounts within this organizational directory only”. DON’T SELECT ANY OF THE OTHER OPTIONS.

    Once you’ve done this, you need to make sure that when you click the authorize button, you are in fact authorising the correct account. To do this login to WordPress using an in-private/incognito browser window to force you to have to login using your client’s office 365 credentials. Providing the account is valid, you will get the success message within the plugins settings.

    This will mean the plugin is able to send email via the API. Whether or not it will work with the form though is a separate issue. It sounds like the Elementor Contact form is not compatible. I would need a detailed PHP server log, or further information about the parse error to provide any insight as to why you’re getting the parse error. Without that I can’t be of much help I’m afraid.

    If you do submit the log, make sure you remove any sensitive/personal info!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘parsererror elementor contact form’ is closed to new replies.