How to send an email to yourself, from react frontend - node.js

I know this sounds very similar to other questions, but it's a little more confusing. The person I'm making the website for wants to make an ordering system, in which you pick your product, then when you click the order button, it sends an email to him. I've tried using an 'a' tag with a href of mailto, but that opens your mail system, which isn't what I want.
If any of you guys have used J-lab test prep, at the end of your session, you can email your results to your teacher with the click of a button, without opening your mail client.
Edit:
I realized I probably need a server for that to host the email, does anyone know how to make that type of back-end?
Thanks in advance!

Related

How can I add a Whatsapp function to my website?

I have very little reputation points so I cannod add a comment in this similar question.
But I need an explanation as the code is working in a different way as expected.
I would like to have a link on my website where the user can click on the whatsapp link and start the conversation with the contact.
The code I add is this:
href="intent://send/0123456789#Intent;scheme=smsto;package=com.whatsapp;action=android.intent.action.SENDTO;end
where 0123456789 were substituted with a real number subscribed to whatsapp.
But it seems working only with my contact. If I have a new number it will not work and will tell me that the contact number is not connected to whatsapp (even if it is).
How can I solve this problem?
Once this first problem is solved, I'd like to add some preformatted text to the message like: message sent from website xyz. What code should I add?
This like of code is working for Android, I need it also for iPhone, what should I use?
This other code is working on Android and on iPhone, but it doesn't allow me to add a custom contact number:
whatsapp
abid can be only an ID from a contact already saved in you phone, otherwise it will open the contact selection page in whatsapp
Please, don't share links without explanation of the content as I'm not a developer, I'm just trying to do my best following instructions of people with more knowledge.
Thank you.
As long as your explanation describes you are looking for a user to be able to Click in order to open a Chat with a specific Whatsapp active user.
Nowadays Whatsapp has emitted an API to specifically solve this needs, it's called 'Click to Chat' API and must work on all devices:
https://faq.whatsapp.com/en/general/26000030
Also, the scheme for the link you were using seems to be working correctly nowadays when used like this:
whatsapp://send?text=MESSAGE&phone=+NUMBER&abid=+NUMBER

How to block spammers from using my public email api

I am working on a web application which allows users to share stuff on a web-page by clicking on an 'email to friend' link; similar to what extole is doing here
http://www.american-giant.com/mens-heavyweight-full-zip-hooded-sweatshirt-product.html
on this page if you click on the email icon near "REFER & GET $15", you will see a pop-up where you can enter your own email and a friends email and can edit the subject of the email. When you click send the data is sent to the backend as json. They are using a plain simple url to do this i.e. http://refer.american-giant.com/v2/share.
The problem for me is that somehow spammers got hold of my url (can't mention here) and now they are using it to spam others by using some sort of a script. What I did is I placed a check in the backend api to block an ip if more than 5 share requests originate from it, but it seems that the spammers have a lots of ips (more than 30,000 from what I counted in my logs) so they are still able to send lots of email. One possible solution is to use a captcha to thwart the spamming script. But I am curious that how extole is doing it. They aren't using any captchas; and they are famous too, so it is unlikely that spammers don't know about their publicly accessible api. Can any one shed some light on this?
Note:
1. I am using a third party email service to send the emails.
2. Users are not required to sign in as this defeats the purpose of sharing on a simple website
3. Users can edit the subject and body, thus these are sent to the api call and this is what allows the spammers to abuse the api with their own stuff.

Any experience in writing greasemonkey script for gmail?

I've had this idea for a year or so and I find it hard to believe that I am the only one to have ever of thought of this. This feature is not available in any web-based or email client that I know of. I would love to see this for Gmail. I posted a topic on the Gmail help forums but never received any meaningful replies.
A lot of people forward on emails to groups of other people, usually of the fun or joke variety. I don't want to be that guy that forwards on the email to my "fun" group of addresses only to send it right back to the person that just sent it to me or to someone that may have already received it previously in the thread of messages. I find myself hitting the "forward" button, adding a group to the recipients list, then having to go through the list and remove people that received the email just like me.
So, why not have a "Forward without Duplicates" button that parses through the message body and remove any address found from the recipients list. This way, anyone that has already been included in the email thread does not receive the message again. I don't forward on emails anymore b/c of the annoyance of having to add a group of addresses and then slowly and painfully go through and remove each one that does not need to be on it.
I have tried using firebug to isolate what needs to be parsed through, but it is tough. Does anyone have any direction they could point me in? The Better Gmail extension for Firefox includes some scripts that have been written, but I have no idea where to even start to be honest. Is there a way to look through these scripts to use as learning examples?

Post Username & Password To Protected Folder/Site

I'm trying to post a username & password from an HTML form to a protected folder on a website? Is this possible? I thought I just pass in a syntax in the URL like the below but not having any success
http://username:password#theurlofthesite.co.uk
I'm still getting the alert pop up asking for the username and password? I need to be able to auto log the person in..
Hope someone can help? Thanks
If you login via a HTML form, then this won't work. This is only for HTTP authentication, which is something else completely different.
I don't think many (any?) browsers support being opened to post data. Which leaves you hoping that the site accepts GET based logins (and they should be shot if they do.).
The address part of the URL is parsed by your web server, so the code which handles the HTML form never sees it.
If you want to pass parameters to a form, you must use url?field=value&field2=value2. This only works with forms that use the GET action. For POST, you need a program to generate an encoded document and upload that.
In both cases, your user name and password are broadcasted as plain text on the Internet, so the account will be hacked within a few hours. To put it more clearly: There is no way to "protect" the data in this folder this way. This is like adding a door with four locks to your house and keep the keys on a nail in a post on the street next to the door.
I did exactly what I did in the question and it works on all browser except Safari on a Mac

Lotus Notes doesn't send customised button

I created a customised button with some simple actions attached to it in Lotus Notes 6.5. It's just a simple voting button, which I emailed to a group of nearly 200 people. While sending I got a pop up telling me that the button can't be send. After about 10 seconds I got a first reply asking 'where's the button'. Then an avalanche of very clever emails followed, such as: 'no button', 'where's the button', etc.
Before I spammed everyon I had tried the email on my work mate and the button went through fine!
Any ideas? I suspect some security policy....
I really need to send this mail and get the survey results, so I don't want to fail again. Any suggestions appreciated.
Many Thanks,
Damo
Might be an issue if some recipients don't have Notes e-mail account.
If your gathering information then assuming you are going to store the data in a Lotus notes database create a form where they can input it directly and just send them a doc link to the database.
Buttons can be weird because if they contain code that is restricted by the ECL of the workstation then notes may automatically hide the button on the basis that it won't let the code run so hide it by default. You may be able to get round this by having the system admins send the button on your behalf.
This may be a daft question, but did you actually send the email to other Lotus Notes users via your Notes infrastructure? If not, the mail routers will have stripped the mail of any proprietary Notes stuff as it wings out to the internet.
You mention an error message, what was it exactly? AndrewB mentions that your organisation's ECL may be kicking in; alternatively, if you use 3rd party spam / trojan protection, that might have had something to do with it, I don't know.

Resources