Taken from Using MacOSX Lion command line mail with Gmail as SMTP
Edit file /etc/postfix/main.cf
sudo vim /etc/postfix/main.cf
| <?php | |
| /* | |
| Plugin Name: Pug Bomb API Endpoint | |
| Description: Adds an API endpoint at /api/pugs/$n_pugs | |
| Version: 0.1 | |
| Author: Brian Fegter | |
| Author URL: http://coderrr.com | |
| */ | |
| class Pugs_API_Endpoint{ |
| <?php | |
| require_once('wp-load.php'); | |
| is_user_logged_in() || auth_redirect(); | |
| $upload_dir = wp_upload_dir(); | |
| //Set your path below I am using /gravity_forms/ | |
| $basedir = $upload_dir[ 'basedir' ] . '/gravity_forms/'; | |
| $file = rtrim( $basedir, '/' ) . '/' . str_replace( '..', '', isset( $_GET[ 'file' ] ) ? $_GET[ 'file' ] : '' ); | |
| if ( ! $basedir || ! is_file( $file ) ) { |
| <?php | |
| /** | |
| * WARNING! THIS SNIPPET MAY BE OUTDATED. | |
| * The latest version of this snippet can be found in the Gravity Wiz Snippet Library: | |
| * https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-submission-limit.php | |
| */ | |
| /** | |
| * Gravity Wiz // Gravity Forms // Limit Submissions Per Time Period (by IP, User, Role, Form URL, or Field Value) | |
| * | |
| * Limit the number of times a form can be submitted per a specific time period. You modify this limit to apply to |
| <?php | |
| /** | |
| * WARNING! THIS SNIPPET MAY BE OUTDATED. | |
| * The latest version of this snippet can be found in the Gravity Wiz Snippet Library: | |
| * https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-day-count.php | |
| */ | |
| /** | |
| * Gravity Wiz // Calculate Number of Days Between Two Gravity Form Date Fields | |
| * | |
| * Allows you to calculated the number of days between two Gravity Form date fields and populate that number into a |
| .fileContainer { | |
| overflow: hidden; | |
| position: relative; | |
| } | |
| .fileContainer [type=file] { | |
| cursor: inherit; | |
| display: block; | |
| font-size: 999px; | |
| filter: alpha(opacity=0); |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <forms version="1.6.12"> | |
| <form labelPlacement="top_label" useCurrentUserAsAuthor="1"> | |
| <title><![CDATA[GF Form 1 Test - Top aligned labels, Descriptions below inputs]]></title> | |
| <description><![CDATA[We would love to hear from you! Please fill out this form and we will get in touch with you shortly.]]></description> | |
| <confirmation type="message"> | |
| <message><![CDATA[Thanks for contacting us! We will get in touch with you shortly.]]></message> | |
| </confirmation> | |
| <button type="text"> | |
| <text><![CDATA[Submit]]></text> |
| /*! | |
| ---------------------------------------------------------------- | |
| Gravity Forms Front End Form Styles | |
| Version 1.0 | |
| http: //www.gravityforms.com | |
| Based on the original forms.css that ships with Gravity Forms | |
| ---------------------------------------------------------------- | |
| */ |
Taken from Using MacOSX Lion command line mail with Gmail as SMTP
Edit file /etc/postfix/main.cf
sudo vim /etc/postfix/main.cf