• Resolved Accur

    (@accur)


    Hi There,
    I have some complex gravity forms on my site and P3 Plugin profiler is telling me that my gravity form submissions go from 4 to 8 seconds (total load time) when using Postman SMTP.

    In more details:

    Without Postman SMTP my runtimes are
    Gravity Forms: 3.3 sec
    WP Core: 0.7 sec
    Gravity Forms Salesforce: 0.6 sec
    Others faster…

    With Postman SMTP:
    Postman SMTP: 4.7 sec
    Gravity Forms: 1.8 sec
    Woocommerce: 0.6 sec
    Others faster…

    This particular form is sending 2 notifications (user, admin) fairly long with basic html. I could reduce those notifs, but I doubt this is why it takes so long.

    Do you have any ideas how I can reduce the runtime for Postman SMTP?

    Thanks in advance.

    Ed

    https://wordpress.org/plugins/postman-smtp/

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

    (@jasonhendriks)

    @accur

    Hi, thanks for writing.

    I’m not sure what to tell you? Obviously communicating with a third-party server is going to take time, especially if that server is out on the Internet and not your localhost. You’ll get better performance by switching from SMTP to one of the web services bundled with Postman (Gmail, Mandrill or SendGrid). I use Gmail SMTP myself and I’ve never seen it take less than two seconds or more than three, to send email.

    Reminds me of something we used to say in school.. “Sure it corrupts data, but look how fast it is” 😉

    If your email works without Postman, then you can probably do without it.

    Thread Starter Accur

    (@accur)

    Hi Jason,
    It does work without Postman, but sometimes goes to spam…
    I will try the other options you suggest.
    Thanks very much for your very fast response!

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    No problem.

    You can get an account for your email for free at SendGrid. Mandrill has no free plans. And Gmail’s free service does not allow custom domains, but the paid Google Apps service does.

    The API might shave 1-2 seconds off your total send time.

    It’s worth noting that based on your post the time for Postman to send mail is only another 2.2 seconds, including Postman’s overhead, probably because it is sending to the Internet and not localhost. That seems reasonable.

    Thread Starter Accur

    (@accur)

    I have disabled one of the 2 notifications and simplified the other. I gained almost 2 seconds overall.

    I will keep digging in what I can do to improve it all.

    But overall how do those runtime look like in your experience.

    Having users wait 8 seconds for a success message seems very very long to me…

    Thanks for your help!

    Thread Starter Accur

    (@accur)

    Last question: should I expect an improvement if I switch from Google Apps API to Mandrill API?

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    You’re sending two emails per submission? That will double your SMTP time. I didn’t realize that’s what you meant by two notifications.

    Yes eight seconds sounds annoyingly long. I’m not sure what Gravity Forms is doing for two seconds on your site.

    Try my contact form. http://www.codingmonkey.ca/contact/ I use Contact Form 7, it’s very fast.

    I doubt there will be much difference with Mandrill vs Gmail.

    Thread Starter Accur

    (@accur)

    I just did and it is indeed very fast!

    But my form is a lot lot longer, with plenty of conditional fields using gravity forms.
    It also uses the SalesForce API and the mailchimp add-on.

    I am thinking, that I should remove all notifications on those long forms and keep only the SalesForce API…

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    I would try a test with a bare bones GF form and postman to see what all those other things (sales force, mail chimp, conditional fields) are costing you.

    Thread Starter Accur

    (@accur)

    Ok I will, but I cannot give up the salesforce API though…

    I will keep you updated.

    Thread Starter Accur

    (@accur)

    I have reduced to a total of 3 sec, by simply removing the notifications…
    I am really getting close.
    The issue overall is not at all PostMan SMTP, but how heavy my forms are…

    Thanks very much for your help and your reactivity!!

    Plugin Author Jason Hendriks

    (@jasonhendriks)

    Great!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Very slow when sending Gravity Forms notifications’ is closed to new replies.