So I build a website that use smtp js for sending mails, it works but this less secure apps active. I was looking at this question How to send emails from Gmail without turning off "allow less secure apps" setting? but this is only for django, how can i do the same but for smtp ..
Category : smtp
I want to show username, email, subject of the form data into body of the email while using Email.send() function. This is the code i have used to send email using smtp server in javascript. Email.send({ Host: "xxxxx", Username: "yyyy", Password: "zzzz", To: ‘[email protected]’, From : email, FromName: name, ReplyAddress: email, Subject: subject, Body : ..
I am trying to use SmtpJS to capture the value of my form and send it to my email. So far I have the following form markup: <form> <input type="text" name="fullname" placeholder="Full Name" /> <input type="text" name="idea" placeholder="Idea" /> <div class="fruits"> <input type="checkbox" id="apple" name="apple" value="apple"> <label for="apple"> Apple</label><br> <input type="checkbox" id="orange" name="orange" value="orange"> <label ..
I am making a contact form in JS using SMTP. but getting error HTTP 405. IDK what’s the problem. HTML <div class="form-area"> <form class="form-submit-js" method="POST"> <input class="form name" type="text" placeholder="Name" ><br> <input class="form email" type="email" placeholder="Email" ><br> <textarea class="form message" type="text" placeholder="Message" rows="4"></textarea><br> <input type="submit" class="contact-submit-button" onclick="sendEmail()" value="Submit"/> </form> </div> JS function sendEmail() { Email.send({ ..
Most RegEx examples for urls out there also include the directories which I don’t need to match. Given the following urls, can you kindly confirm that my Current RegEx is precise? Could it be simplified? Explicit TLS – (iCloud) smtp://smtp.mail.me.com:587 Implicit TLS – (Gmail) smtps://smtp.gmail.com:465 interface UrlParts { url: string, protocol: string, domain: string, port: ..
I have an <input type = "file"> in my HTML that I’d like for the user to select their chosen file, but I’m struggling to actually send it through to Gmail. My HTML (excluding the other input fields): <input type = "file" accept = ".docx" required id = "file" name = "file"> <input type="button" value="Send ..
I have the following HTML code: <form method = "POST" name = "submissionsFrom"> Full Name: <input type = "text" name = "subject" value = "" id = "name"> </p> <p> Message: <textarea name = "message" id = "message"></textarea> </p> <p> Select file: <input type = "file" accept = ".docx" required id = "file" name = ..
I have the following HTML code: <form method = "POST" name = "submissionsFrom"> Full Name: <input type = "text" name = "subject" value = "" id = "name"> </p> <p> Message: <textarea name = "message" id = "message"></textarea> </p> <p> Select file: <input type = "file" accept = ".docx" required id = "file" name = ..
I have my user credentials saved in Heroku config vars. My IMAP request is working but the SMTP is giving an error. Here’s the code that creates the IMAP request which I can tell is working because the emails are marked as "read" after the code runs: const imap = new Imap({ user: process.env.APP_MAIL_2, password: ..
I have the following code: const inputs = document.querySelector(‘input’) btn.addEventListener(‘click’,() => { Email.send({ Host: ‘smtp.gmail.com’, Username:”, Password:”, To:input.value, Subject:"", From: ”, Body:” }).then(msg=>console.log(msg)) And in the body I want to send a photo, on the next row text and then a hyperlink(or even the button) Is it possible or smtpjs does not provide that functuonality? ..
Recent Comments