Home
> Uncategorized > Send #Email with Attachments from #Javascript
Send #Email with Attachments from #Javascript
We’ve made a few updates to SMTPJS.com –
- We now allow attachments, so you can get your Javascript to include an attachment with the email;
use sendWithAttachment:
Email.sendWithAttachment( "from@you.com", "to@them.com", "Subject", "Body", "host.yourisp.com", "username", "password", "http://url-where-your-attachment-file-is-stored");
- We now assume your SMTP server supports SSL. If it doesn’t … it should! 🙂
- We’ve secured all client-server communications using HTTPS for added security.
- We now use CORS for client-server communication, which currently has 95.33 % browser coverage.
Categories: Uncategorized
Hi, it is a great tool!
I want to know that how to send a mail which has multiple attachments?
Thanks in advance.
LikeLike
Hi this is a great tool!
I want to know that how to send a mail which has multi-attachments?
Thanks in advance.
LikeLike
Hi this is a great tool!
I want to know how to send email with multiple attachments?
Thanks in advance.
LikeLike
How do I attach the files from local storage which needs to send over the mail?
Enlighten me.
LikeLike
Currently attempting to send with data uri,
the data uri seems valid, I’ve checked it with a decoder and it seems to work.
I call via:
Email.sendWithAttachment(
from_email,
to_email,
“This is a subject”,
“this is the body”,
smtp_server,
smtp_uname,
smtp_pwd,
datauri,
function (msg) {console.log(msg)}
);
and I’ve used the exact same setup sans datauri to successfully send an email with Email.send.
Any thoughts?
LikeLike