Questions tagged [smtpjs]

Use this tag for questions about the SmtpJS.com email-sending script. For general questions about SMTP use tags [smtp] and [javascript].

Official Website: SmtpJS.com - Send email from Javascript

23 questions
2
votes
2 answers

Error when using smtpJs to send email (JavaScript)

I'm having an error when I try to send an email with smtpJS: "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required. Learn more at (dont appear any link)." I had a…
AxelFelix
  • 21
  • 4
1
vote
1 answer

how can anyone send email to me on my website in js

I am creating a project as I have created a contact page. I want any user to send me a email by putting his email and message in input box of contact page. I have also tried smtpjs but with that I can send the email from my side and registered email…
1
vote
1 answer

Can’t Attach PDF File to Email in JavaScript Using smtpjs

Summarize the problem I am unable to attach a PDF file to an email to be sent to an email address. The PDF file is in the same folder as the HTML file, which contains the JavaScript code to send the email using SMTPJS. Expected result: An email is…
Weizhong Lee
  • 15
  • 1
  • 9
1
vote
2 answers
1
vote
1 answer

How to attach a generated pdf to a smtpjs mail in javascript

I am creating a pdf by converting my html file to pdf using jsPDF var doc = new jsPDF(); var specialElementHandlers = { '#fav-items': function (element, renderer) { return true; } }; $('#submit').click(function () { …
shagi.G
  • 121
  • 1
  • 2
  • 10
1
vote
1 answer

Using SmtpJS in a userscript: Doesn't work, no error messages?

I'm trying to send an email through a userscript using smtpjs because it seems the easiest approach. However it seems more difficult than just sending it by javascript that is embedded in a HTML page. Using this userscript (based on the smtpjs…
user2305193
  • 2,079
  • 18
  • 39
0
votes
0 answers

smtp js error in sending contact form from html and javascript

can I use smtp js without elastic gmail, I am not able to send with my personal email in pure html css and javascript I want to send a form data from html and javascript using smtp js so what I want is please let me know if still it is possible to…
0
votes
1 answer

How to pass secretTocken from php to js script

I was trying to do a contact me page using https://smtpjs.com/v3/smtp.js with elasticmail. I want to pass my token from a PHP file, to make it private. Email.send({ SecureToken : "some secret token from php", To :…
Skerdi Velo
  • 121
  • 2
  • 13
0
votes
0 answers

Send mail from modal form to a mail using smtpjs

Does anyone knows what is wrong with this code? I'm trying to send a information comingo from a modal form to a mail that the modal form ask. Here is the code: function sendEmail() { Email.send({ Host: "smtp.host.email", Username :…
0
votes
1 answer

SmtpJS not working with Elastic Email: "Failure sending mail. The server must be configured corectly."

After pressing send I get an error message saying: Failure sending mail. The server must be configured corectly. function sendEmail() { Email.send({ Host : "smtp.elasticemail.com 2525", Username : "myemail@gmail.com", …
SKEEZ
  • 15
  • 2
0
votes
0 answers

Why cant I send pdf file wit smtpJS?

I attached a .png, and everything works well. When I attach a .pdf file, the email doesn't come through. My code: Email.send({ SecureToken: "xxxxx", To:Array(mail,'something@something.com') , From: "xxxx", Subject:"xxxx", Body:…
0
votes
0 answers

Smtp.js not working in express and embedded javascript

I am using node and express to serve pages rendered in embedded javascript. Wanted to include functionality of sending email through onclick() in my index.ejs file. This is beginning of my index.ejs:
0
votes
1 answer

not receiving emails with smtpjs using elastic mail

So i am using javaScript to send form data to my email and am using smtpjs service with elastic mail authentication now everything is working fine but am not receiving the email here is the code:
editix
  • 322
  • 2
  • 14
0
votes
1 answer

STMP.js is not sending an email is there something I am doing wrong?

I am trying to send emails from my client-side javascript however the function does not send the email. I do not know what I am doing wrong yet or is the feature disabled from Gmail? Here is my code function sendEmail() { Email.send({ …
0
votes
1 answer

Using smtpjs to send the checkbox value of the form in pure javascript

I to use SmtpJS to capture the value of my form and send it to my email. So far I can get the input value without any problems but how do I get the value of the checked checkbox?
1
2