Skip to content

The personalized script to sending emails from your webpage

License

Notifications You must be signed in to change notification settings

mkilinskidev/EasySendMail

Repository files navigation

EasySendMail

The personalized SendMail Script

ScriptVersion PHPMailerVersion ScriptLicense PHPMailerLicense

About

EasySendMail is a personalized script to sending emails directly from your webpage's form. Script uses PHPMailer library and

Usage

Personalizing Web Form and JS Script

First, you nedd to change a UserForm Variables in sendmail.js file:

var scriptPath      = 'assets/SendMail/';		  // Path to SendMail Script
var form 	        = $('#contact-form');		  // Contact Form ID
var formMessages    = $('#form-messages');	      // Response containder ID
var formMsgTxt	    = $('#form-messages p');      // Response text containder ID
var clear_button    = $('#clear');				  // Clear Button ID
var inputClass	    = $('.form-control');		  // Input Fields Class
var submitButton    = $('button');				  // Submit Button ID
var loaderContainer = $('#loader');				  // Loader Icon containder ID

Then, include a sendmail.js file on your webpage, before body closing mark.

Editing PHP Script

Next, you need to change a form variables and your SMTP authorize data in sendmail.php file. That's all.

Resources

License

The credit comments in the JavaScript file should be kept intact (even after combination or minification )

(The MIT License)

Copyright (c) 2016 Mateusz Kiliński <mateusz.kilinski@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Created by

About

The personalized script to sending emails from your webpage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published