Nodemailer. Verify if two emails are sending correctly [closed] - node.js

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Good morning and thank you in advance.
I put you in situation... I'm designing my first "professional" website and it have a form with personal data and the user have to attach confidential private document. When sending it, the app generates a PDF that is sent to the user to serve as proof of having made the request correctly and sends to my client that PDF and the documents attach in the form. You can not give the situation that you send an email but not the second, so, Would there be any way to verify that both emails will be sent correctly and that only in that situation will the be sent?
I'm using node.js on the server side and nodemailer to send the data.
Thanks
PD: Excuse my level of English.

Systems can fail due to any reasons, we must have backup plans, it depends on your use case how you handle the backup plans.
One approach to your problem statement can be you can have some key in Redis (or any cache database) to check if both emails are sent, if not you can retry sending the pending email.

Related

Nodejs write file progress bar in html [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am trying to generate a file in nodejs and I want to show writing file progress bar in the client-side HTML page. because I am writing a 5 lakh data into a file. once files generates complete in nodejs, it should notify users on the client side.
A typical design pattern for communicating server-side progress back to the client is to have the client establish a webSocket (or socket.io) connection to the server and then the server can send regular progress updates over the socket. When the client receives the updates and when it receives the final notification indicating completion, it can use Javascript to update the visual progress in the web page or do anything else it wants to in the page.
I would recommend using the socket.io library on both client and server as it makes things simpler than a plain webSocket.

Steam Store API [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'd love to know if there is a steam API or something, that gets all current steam games and their price? I need to make a Steam Key Trading Bot that sells Steam Game Keys so I need prices of games and actual games to update automatically.
So what I'm asking is if anyone knows where I can get my hands on an automatic updating Steam Games and Pricelist.
I know this exists:
http://api.steampowered.com/ISteamApps/GetAppList/v0001
But it dosen't include price..
You can get detailed information about apps by making a request to
http://store.steampowered.com/api/appdetails?appids=<appid>
The JSON response contains a field called price_overview which holds the price- and discount-information.
However, you have to make this request for each app you want to check.
EDIT:
According to this post, the support for multiple appids has been removed and the api is limited to 200 requests per 5 minutes.

How do I create a dynamic web page for a client pulling from my database [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a business idea where clients would enter some information in on a Software as a service type interface by filling out some web forms. The information they entered in would then be saved to my database. I am comfortable with this part, however I would like to be able to have clients put a small almost stupidly simple code snippet on their web page and be able to push content to their web page in a content div. I guess I could just send them a .php file to upload to their root and a single include line to write but I would prefer not to do this sort of thing since I don't really want to be mailing out proprietary code snippets with my DB information.
Are there any suggestions for how to implement the content push that are both extremely simple for clients to put on a web page but at the same time very private in the way the code is pushed?
I don't know if I understood your question really well but...
Isn't the answer to your problem a webservice? You could create a webservice that receives some sort of "password" and if the password is right you return the data JSON/XML formatted.
But you are talking about push, that means that when your server have new information you want to notify your client's server about the new information. I would say that what you should do in that case is make a request to the client server notifying them that you have "new stuff" and then after they have been notified they simply go ahead and use your webservice (mentioned above) and update their data.
I hope this answer your question or gives you and idea of how to do it.

user own image folders (security against hacker) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm creating a browser based image cloud service and every user will have his own picture folder.
My question is how to make sure, other users or hackers can not access foreign folders.
What is to consider?
Is it e.g. enough to check session-variables?
Thanks in advance!
I'm not 100% sure what you mean by just checking the session-variables.
I would create a setup like this:
\root
\userImages
\user1
\img1.png
\img2.png
\user2
\img1.png
\img2.png
\public
\index.php
I'm assuming you would use PHP or ASP.NET or something similar that uses some type of server like nginx or apahce. You can set the server root to the public folder. This means only your code would have access to the user images.
You can use PHP or whatever language to look at the session information and see if the user is authenticated. If you can, I would recommend encrypting the cookie data with Mycrypt. Once you have checked the authentication, you can get the file with a script and send back header information. Here's a really in depth article that I think would help you if you actually want a how-to. Protecting Images with PHP
If you are using PHP, Laravel handles sessions and protecing images really nicely.

Weather API on remote server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
My idea was creating iOS applications where the user can enter a location. This location is stored in a remote database with the device id for push notifications.
Then the application on the remote server periodically checks the weather and when it's about to rain in one of the locations stored in the database it sends push notifications to all device ids for that location.
So basically I need to create iOS applications to store data (I like to call these "listeners") and a application for the server which connects to a weather api and sends notifications ("controller").
My idea on the controller is still kind of vague and I don't really know how to achieve this. Is it even a good idea to create an application that runs 24/7 on the server to checks the weather and sends notifications. And if not, what would be a good way to achieve something like this?
This should be the only way to do it in my opinion. You server could check for more people per update then the app could do it self. Also by using push notification you will make sure that you app is not running in the background (this is not even possible for your kind of app) and draining the battery.
A cron job that runs every so often that calls a web page, shell script, etc.. will also do. There are many option and there is no 1 answer.

Resources