PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Setting outgoing SMTP

  1. Suze
    Member

    Does Gravity Forms allow the purchaser to set the outgoing SMTP port for each form?

    Posted 13 years ago on Friday January 14, 2011 | Permalink
  2. By default, Gravity Forms uses the wp_mail() function to send mail. You can change that behavior and send mail via SMTP using a WordPress plugin like WP SMTP Mail.

    http://wordpress.org/extend/plugins/wp-mail-smtp/

    That plugin allows the use of a custom port for SMTP, but I don't believe it would be integrated to the point that you could use a different port for every form. I think it's one setting in the WP SMTP Mail plugin for the port, and that's what is always used.

    There might be a way to change that configuration dynamically based on which Gravity Form is sending a confirmation, but it would be custom and not built in.

    ** edit **

    After reading your other questions, I think you mean is it possible to use port 587 or something else SSL, to secure the email. The port would be the same for all the forms though. If that's the case, then the answer is yes, by using the WP SMTP Mail plugin, and setting the server name and port to something secure. Then all your forms will use that outbound mail server.

    Posted 13 years ago on Friday January 14, 2011 | Permalink
  3. Suze
    Member

    Sorry if my question wasn't clear - yes I meant for *all* forms, not each form. HostGator told me the outgoing SMTP would need to be set to port 465 - I assume this is equivalent to port 587 in that it's specifically for encrypted data...

    Thanks for your reply :-)

    Suze

    Posted 13 years ago on Monday January 17, 2011 | Permalink
  4. It will be no problem to use port 465 for your HostGator SMTP server with the WP SMTP Mail plugin. You can see that specifically in the screen shot of the admin panel for the plugin:

    http://s.wordpress.org/extend/plugins/wp-mail-smtp/screenshot-1.png

    Plugin:
    http://wordpress.org/extend/plugins/wp-mail-smtp/

    Posted 13 years ago on Monday January 17, 2011 | Permalink
  5. Hi,
    I've set up the SMTP plugin and created a unique email address and used that as the authentication address. The email is "gravity-forms@brain-dr.com." Through the HostGator CPanel, I set it up so emails to that address forward to me. Then in the Gravity form I'm working on, I set the "Send to" field as "gravity-forms@brain-dr.com". In the SMTP plugin I set the host and port to the ones HostGator told me were for SSL, and I selected the SSL radio button.

    Are these the correct configurations in order to have the form data sent securely to me?

    Thanks for your help :-)
    Suze

    Posted 13 years ago on Friday March 25, 2011 | Permalink
  6. On the WP Mail SMTP Settings page there is a Test Email form at the bottom of that page. Try using that and see if the Test Email works. If it does, then the Notifications in Gravity Forms should work. If it doesn't, it should give you an error message that will tell you why it couldn't send so that you can see what you need to change in your settings.

    Posted 13 years ago on Friday March 25, 2011 | Permalink
  7. Thanks Carl - it works :-)

    Suze

    Posted 13 years ago on Sunday March 27, 2011 | Permalink

This topic has been resolved and has been closed to new replies.