Home > Uncategorized > Send #email via #JQuery

Send #email via #JQuery


This was bit of an aborted project, since I see that the JQuery Plugin registry is now closed for new submissions. But, I created a little JQuery Plugin as a Wrapper for the SMTPJS library with this;

(function ( $ ) {
$.getScript( “https://smtpjs.com/v2/smtp.js”, function( data, textStatus, jqxhr ) {
$.fn.Email = Email;
$.fn.Email = function() {
return “Not Loaded yet”;
}( jQuery ));

Which can be called as follows;

“Subject line”,
“Body in HTML”,
token: “GUID from SMTPJS.com”,
callback: function done(message) { alert(message) }

The GIT repo is here https://github.com/infiniteloopltd/SmtpJQuery/

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: