Horje
Send emails and upload contacts through SendGrid from your WordPress installation using SMTP or API integration.

Noted That:

  • To install correctly this sendgrid-email-delivery-simplified.zip.
  • Fisrt Download the sendgrid-email-delivery-simplified.zip to your computer
  • Extract/Open sendgrid-email-delivery-simplified.zip to Your Computer.
  • Then, Find readme.txt file inside sendgrid-email-delivery-simplified.zip and Open readme.txt.
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the the Tips Below.

Start the Tips:

1. First Download "sendgrid-email-delivery-simplified.zip" Plugin to your Local Computer. (Click Download)

2. Then, Login to your "yourdomain.com/wp-admin" Dashboard.

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on "Plugins" + "Add New" from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

5. Now, Browse "sendgrid-email-delivery-simplified.zip" Downloaded plugin from your computer, Where you downloaded sendgrid-email-delivery-simplified.zip According to Step – 1 Above then, click on "Install Now"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on "Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. "SendGrid" folder is added on left sidemenu. Now, Click on "SendGrid" folder.

   Noted that: If you do not see "SendGrid" folder on left sidemenu then, see at left sidemenu "Settings" or "Tools".

8. Now you configure yourself oR Watch video tutorial below about SendGrid Configurtions and Settings or How to work "SendGrid" in your WordPress site.

 

oR

After Activated Plugin According to Step-6 then,

  1. Go to "Plugins" + "Installed Plugin" from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find "SendGrid" Activated Plugin from Plugin List.
  4. Then, Click on "Settings" from Plugin that is SendGrid
  5. Now, Edit/Add/Config the setting and Click on "Save Changes" button,
WP Plugin Setting



Guide

Requirements:

  1. PHP version >= 5.6 and <= 7.1. Installing this plugin on PHP versions 5.3 and earlier will cause your website to break.
    Installation on PHP versions 5.4 and 5.5 will work but it is not recommended.
  2. To send emails through SMTP you need to also install the ‘Swift Mailer’ plugin. ( https://wordpress.org/plugins/swift-mailer/ )
  3. If wp_mail() function has been declared by another plugin that you have installed, you won’t be able to use the SendGrid plugin

To upload the SendGrid Plugin .ZIP file:

  1. Upload the WordPress SendGrid Plugin to the /wp-contents/plugins/ folder.
  2. Activate the plugin from the “Plugins” menu in WordPress.
  3. Create a SendGrid account at http://sendgrid.com/partner/wordpress
  4. Navigate to “Settings” -> “SendGrid Settings” and enter your SendGrid credentials

To auto install the SendGrid Plugin from the WordPress admin:

  1. Navigate to “Plugins” -> “Add New”
  2. Search for “SendGrid Plugin” and click “Install Now” for the “SendGrid Plugin” listing.
  3. Activate the plugin from the “Plugins” menu in WordPress, or from the plugin installation screen.
  4. Create a SendGrid account at http://sendgrid.com/partner/wordpress
  5. Navigate to “Settings” -> “SendGrid Settings” and enter your SendGrid credentials.

For Multisite:

  1. Navigate to “My Sites” -> “Network Admin” -> “Plugins”
  2. Click on “Add New”
  3. Search for “SendGrid Plugin” and click “Install Now” for the “SendGrid Plugin” listing.
  4. Network Activate the plugin from the “Plugins” menu in WordPress, or from the plugin installation screen.
  5. Create a SendGrid account at http://sendgrid.com/partner/wordpress
  6. Navigate to “My Sites” -> “Network Admin” -> “Dashboard”
  7. Click on the “SendGrid Settings” item in the menu on the left and enter your SendGrid credentials.

Global Settings

SendGrid settings can optionally be defined as global variables (wp-config.php):

  1. Set the API key. You need to make sure you set the Mail Send permissions to FULL ACCESS, Stats to READ ACCESS and Template Engine to READ or FULL ACCESS when you created the api key on SendGrid side, so you can send emails and see statistics on wordpress):

    • API key: define(‘SENDGRID_API_KEY’, ‘sendgrid_api_key’);
  2. Set email related settings:

    • Send method (‘api’ or ‘smtp’): define(‘SENDGRID_SEND_METHOD’, ‘api’);
    • From name: define(‘SENDGRID_FROM_NAME’, ‘Example Name’);
    • From email: define(‘SENDGRID_FROM_EMAIL’, ‘[email protected]’);
    • Reply to email: define(‘SENDGRID_REPLY_TO’, ‘[email protected]’);
    • Categories: define(‘SENDGRID_CATEGORIES’, ‘category_1,category_2’);
    • Template: define(‘SENDGRID_TEMPLATE’, ‘templateID’);
    • Content-type: define(‘SENDGRID_CONTENT_TYPE’, ‘html’);
    • Unsubscribe Group: define(‘SENDGRID_UNSUBSCRIBE_GROUP’, ‘unsubscribeGroupId’);
  3. Set widget related settings:

    • Marketing Campaigns API key: define(‘SENDGRID_MC_API_KEY’, ‘sendgrid_mc_api_key’);
    • Use the same authentication as for sending emails (‘true’ or ‘false’): define(‘SENDGRID_MC_OPT_USE_TRANSACTIONAL’, ‘false’);
    • The contact list ID: define(‘SENDGRID_MC_LIST_ID’, ‘listID’);
    • Display the first and last name fields (‘true’ or ‘false’): define(‘SENDGRID_MC_OPT_INCL_FNAME_LNAME’, ‘true’);
    • First and last name fields are required (‘true’ or ‘false’): define(‘SENDGRID_MC_OPT_REQ_FNAME_LNAME’, ‘true’);
    • Signup confirmation email subject: define(‘SENDGRID_MC_SIGNUP_EMAIL_SUBJECT’, ‘Confirm subscription’);
    • Signup confirmation email content: define(‘SENDGRID_MC_SIGNUP_EMAIL_CONTENT’, ‘click here’);
    • Signup confirmation page ID: define(‘SENDGRID_MC_SIGNUP_CONFIRMATION_PAGE’, ‘page_id’);
  4. Other configuration options:

    • Set a custom timeout for API requests to SendGrid in seconds: define(‘SENDGRID_REQUEST_TIMEOUT’, 10);

Filters

Use HTML content type for a single email:

add_filter('wp_mail_content_type', 'set_html_content_type');
// Send the email
remove_filter('wp_mail_content_type', 'set_html_content_type');

Change the email contents for all emails before they are sent:

function change_content( $message, $content_type ) { if ( 'text/plain' == $content_type ) { $message = $message . ' will be sent as text ' ; } else { $message = $message . ' will be sent as text and HTML '; } return $message;
}
add_filter( 'sendgrid_override_template', 'change_content' );

Changing the text content of all emails before they are sent:

function change_sendgrid_text_email( $message ) { return $message . ' changed by way of text filter ';
}
add_filter( 'sendgrid_mail_text', 'change_sendgrid_text_email' );

Changing the HTML content of all emails before they are sent:

function change_sendgrid_html_email( $message ) { return $message . ' changed by way of html filter ';
}
add_filter( 'sendgrid_mail_html', 'change_sendgrid_html_email' );

Note that all HTML emails sent through our plugin also contain the HTML body in the text part and that content will pass through the “sendgrid_mail_text” filter as well.


installation, wordpress, using, smtp, integration, your, sendgrid, emails, upload, contacts,

Name

Reffered: https://wordpress.org/

Share on: