• Resolved craigcac

    (@craigcac)


    Hi,
    I have manually configured Postman to handle email via Gmail Port 25. I couldn’t get the API to work. Anyway, this does work, but not quite right. In The Postman message tab I configured it to come from one of my domain addresses. When the Gravity form submission sends the email notifications it sends one to the user and another to the admin. Both notifications are coming from the email address set for the site and not the address configured in Postman message tab. What it needs to do is use the email address submitted in the form for the admin notifications. Any ideas on how to fix this?
    Regards,
    Craig

    https://www.ads-software.com/plugins/postman-smtp/

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Jason Hendriks

    (@jasonhendriks)

    Hi! Thanks for using Postman ??

    Can you post the data from the Diagnostic Test here please.

    Thread Starter craigcac

    (@craigcac)

    OS: Linux 25960-xxxxx.cloudwaysapps.com 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64
    HTTP User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36
    Platform: PHP Linux 5.5.25-1~dotdeb+7.1 / WordPress 4.2.2 en_GB
    PHP Dependencies: iconv=Yes, spl_autoload=Yes, openssl=Yes, sockets=Yes, allow_url_fopen=Yes, mcrypt=Yes
    WordPress Plugins: Disable New User Notifications, Network Username Restrictions Override, Redirection, Widget Logic, WordPress Importer, WP-Mail-SMTP
    WordPress Theme: Divi Theme
    Postman Version: 1.6.22
    Postman Sender Domain: mydomain.co.uk
    Postman Transport URI|Force Email|Name: smtp:tls:plain://smtp.gmail.com:25|No|No
    Postman Transport Status (Configured|Ready|Connected): Yes|Yes|Yes
    Postman Deliveries (Success|Fail): 32|0
    Postman Bind (Success|Fail|Path): Yes|No|/home/25960-xxxxx.cloudwaysapps.com/xxxxx/public_html/wordpress/wp-content/plugins/postman-smtp/Postman/PostmanWpMailBinder.php
    Postman TCP Timeout (Connection|Read): 10|60
    Postman Email Log (Enabled|Limit|Transcript Size): Yes|10|128
    Postman Run Mode: production
    Postman PHP LogLevel: 40000
    Postman Stealth Mode: No
    Postman File Locking (Enabled|Temp Dir): Yes | /tmp

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    Both notifications are coming from the email address set for the site and not the address configured in Postman message tab

    You can check “Prevent plugins from overriding this” in Message tab of Postman. Then the notifications will come from what you’ve set in Postman.

    What it needs to do is use the email address submitted in the form for the admin notifications

    I have no idea why Gravity Forms isn’t setting your From address correctly. Probably a configuration problem in Gravity Forms. Setting the “Prevent plugins from overriding this” will also prevent Gravity Forms from using the email address submitted in the form.

    Postman Sender Domain: mydomain.co.uk
    Postman Transport URI|Force Email|Name: smtp:tls:plain://smtp.gmail.com:25|No|No

    On a separate note, do you use Google Apps for your domain “mydomain.co.uk”? I don’t understand why you’re sending on port 25 with no authentication. Some receiving endpoints are going to mark you as Spam, or worse.

    Thread Starter craigcac

    (@craigcac)

    “Preventing plugins from overriding this” doesn’t resolve my issue.
    Yes, I do use Google Apps. At the time of writing, this setting was the only one that generated successful emails. I will try again to see if I can get the Google API to work.

    WP-Mail-SMTP allows you to set the Return-path. Is this option available in Postman – I can’t see anything like that.

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    WP-Mail-SMTP violates the RFC.

    A message-originating SMTP system SHOULD NOT send a message that already contains a Return-path header field.

    The SMTP server making final delivery will use Postman’s Envelope From Address for the Return-Path.

    “Preventing plugins from overriding this” doesn’t resolve my issue.

    I think you’re going to have configure email correctly before trying to troubleshoot any problems you have. You cannot send Google Apps email through Gmail on port 25 without authentication. Did you run the Postman Wizard? What did it tell you?

    Note: Gmail does NOT support using your visitor’s address as the From address. Gmail does have a “Send Mail As” feature for Gmail aliases and groups that you control.

    Thread Starter craigcac

    (@craigcac)

    I did run the Wizard and I could use any of the options.

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    Use the options that the Wizard picks for you.

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    WP-Mail-SMTP violates the RFC.

    I just looked at the source code for WP Mail SMTP and I have to take back what I said. That plugin sets the Envelope From, same as Postman, not the Return-Path header, and is completely RFC-compliant. The author has just labelled it as “Return-Path”.

    Thread Starter craigcac

    (@craigcac)

    So if I leave Envelope From blank, what happens then?

    Can you allow a variable in this field if leaving it blank is not allowed?

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    No, it can’t be blank. This field is required for the SMTP protocol.

    Read my blog post here : Contact Form Emails won’t send with my Visitor’s Email Address

    Thread Starter craigcac

    (@craigcac)

    The weird thing is that the emails are coming from an alias of my domain and not the email set in the settings which is [email protected]

    This email address is set as a user variable in the Gravity Form

    I am very confused.

    Also confusing is that the Wizard does not choose to select the Gmail API but instead is opting for Port 587 OAuth 2.0 – can you explain why it does this?

    (P.S. when I visit your blog the header area is filled error messages at the moment)

    Thread Starter craigcac

    (@craigcac)

    Forget that – the alias is actually set in the Gravity Form – oops!

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    The weird thing is that the emails are coming from an alias of my domain and not the email set in the settings which is [email protected]

    Google Apps does not allow using your visitor’s email address as the From address. It does however, allow using a Google Apps alias or group.

    Also confusing is that the Wizard does not choose to select the Gmail API but instead is opting for Port 587 OAuth 2.0 – can you explain why it does this?

    The Wizard will choose SMTP over the Gmail API because the API is more restrictive.

    (P.S. when I visit your blog the header area is filled error messages at the moment)

    Ya. I found a bad plugin.

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    So, bring me up to speed. Have you properly configured Postman to send to Google with authentication?

    Are you still having problems with the email address being sent? If you are, send me the transcript of an email that didn’t work as expected so I can see what is going on.

    Thread Starter craigcac

    (@craigcac)

    OK, so I read your blog article and the answer would seem to be that I can set the reply-to email address. This has fixed the issue with responding to form submissions. I then amended the user notification form settings so that the email came from the [email protected] (as set in Postman), but the user email is currently not being received. So frustrating. I get one thing to work and another stops!

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Postman with Gravity Forms’ is closed to new replies.