parse.com - How to generate and add verification url within email? - javascript

I am using parse.com as backend for my android application.
On signup, an email is sent to user with the help of my parse cloud code and mailgun api integration. My code works fine for sending email.
But I am unable to understand how to add an auto-generated url within my mail, to verify the user's email address and save that information in the parse database.
What i have tried is, turning on email verification option, but don't know what to do next. Also, I am using my own domain for sending email and not parse one. Would really appreciate any help. Thanks

Goto your dashboard-> App Settings-> Hosting and Email. There you will able to find Email Settings. Enable "Verify User Emails" . DONE

Related

How can I acess content of email triggered by a test in Cypress

An email is being sent in my case ( 1. When resetting the password, 2. Adding a New member) during both API and UI tests.
How can I access these emails without actually logging into my mail manual and accessing the content, so I can add them to the test and verify?
The test is something like the below.
User can reset the password.
Mail is triggered.
User uses the link in the mail to reset the password.
User logs in again using the new password.
Second test.
Admin adds a member.
Admin adds a new member and gets a mail about confirmation.
verify the mail sent to the new member's email.
Would appreciate any help here.
I have tried to look into the third parties but it seems I need to use their email accounts I was hoping if someone can help me regarding Gmail(accessing the content of emails going to Gmail)
If your application is running locally and is sending the emails directly through an SMTP server, you can use a temporary local test SMTP server running inside Cypress. Read the blog post "Testing HTML Emails using Cypress" for details.
If your application is using a 3rd party email service, or you cannot stub the SMTP requests, you can use a test email inbox with an API access. Read the blog post "Full Testing of HTML Emails using SendGrid and Ethereal Accounts" for details.
Taken from the official best practice page at "Verifying sent emails". Read more here.
If you are looking for a free third-party email client (of course with just 100 emails per month) you can use testmail.app
This app is pretty much basic and easy to integrate with cypress.
You can find docs here
To check if an email have been correctly sent by your application in a Cypress E2E test, you can use an external service like TestSendr.
This (free) service will allow you to send an email to something ending by #testsendr.link, and then check the email received via a simple REST API. Check the quick start!

How do I get my React app to read/parse contents of an email attachment?

I'm writing a React app for my company that displays server status for technicians to review daily. I cannot seem to find an appropriate node module that can access an email account and parse the through text of a (.txt) file attachment on new emails so I can display the data in a component. I can find plenty of help for sending emails but not parsing through received, let alone one with an attachment.
You need to configure the email account using IMAP. Because you will fetch all emails to your Email Account(like Company email) in the Node application.
I have mentioned the package that you can use to get all emails in your application.
https://npm.io/package/imap
After getting all emails then you can do anything because you have all the data.
If you face any issues please comment, I will try my best to solve your issue.

Firebase - Send Password via Email after User Account Creation

I am working on a college app in which only the administrator has the right to create user accounts. On successful User Account creation, the user gets an email with his user email and password as plain text.
I am already familiar with the email verification and password reset mail in firebase but I am not allowed to do that.
I already looked at answer to this question: Send User Password via Email with Firebase but it is very less helpful as the answer provided is complicated to understand.
So all I want is the password to be sent via email whenever a user is created.
PS: I am working with Web Interface (JavaScript). How do I do that? It would be even nice if I get help with some code chunks included.
You can achieve this using firebase cloud functions following the steps below
Setup Admin SDK following the documentation https://firebase.google.com/docs/admin/setup
Add a Firebase Authentication Listener https://firebase.google.com/docs/functions/auth-events
You can send mail with sendgrid See this article
If you want to really get familiar with cloud functions you can start here

How do I set up a user's phone number as a password recovery option in Nodejs

I'm working on a nodejs project, I used passportjs in nodejs to create a login system. Everything seems ok, but I do not know how I can go about password recovery so that in the case of a lost or forgotten password, you have the option to receive a text message (SMS) or voice call to recover your account.
I want trying How To Implement Password Reset In Node.js, but the example there show password recovery via email.
I have checked this Stackoverflow questions already, but none of them helps in what I plan to archive:
How can I send verfication codes to mobile numbers in node.js? (Like nodemailer, but for SMS)
Password Reset In NodeJS
reset / change password in nodejs with passportjs
I will greatly appreciate any help.
Thank a million in advance.
Disclaimer, I do not have experience in Nodejs and this is a rough example.
Find a service that can send texts to users such as twilio.
Generate an authentication code using a random generator when user presses button. Use that authentication code as a key to a map where the value is the user.
Then when the user inputs the code you can lookup the User to reset using the map created before.
The map you would want to store in your database.

Google Apps Script - check if an email has sent properly

I'm working on a Google Apps Script project that sends an email when a button is clicked on a HTML sidepanel I've built. Currently the script works as planned and fires off an email when told, but I'm wondering if there's any way that it could check that the email sent correctly so I can notify the user that it's ok to close the tab?
Thanks in advance
If you are using the Gmail API to sending email, it will return the ID of the email that you can use to trace the email in your mailbox.
Google Script stores a copy of every sent email in the Gmail sent items folder. If you are using the GmailApp service, search the sent items for a copy of the email. If found, it was sent.
GmailApp.search("in:sent to:email#domain.com after:epoch_time")
You can use epoch time in Gmail search to find emails that were sent in the last minute or so.

Categories