There are many people who have multiple email accounts, either for personal matters, work or business, and in all of them they receive every day spam messages, which makes you waste time deleting them. A solution to prevent users from being registered on different mailing lists is to create a temporary or ‘disposable’ email.
Temporary emails are addresses that are generated without registration or password and have an expiration date, which means that after a certain time, said email will cease to exist.
In this sense, users may use these ’emails’ to avoid receiving spam in your usual accountTherefore, they should not provide the ‘disposable email’ address as a communication method.
There are different free services so that users can create a temporary mail, such as YOPMail, TempMail, 10MinuteMail, MyTrashMail, MailDrop or Mailinator. However, it is also possible to use Gmail as a temporary email service provider.
To create a temporary ’email’ with the Gmail account, users can disclose your regular account by adding the “+” symbol and then the month, the day and the year in which we want to stop receiving emails.
In this sense, if the user’s usual email is ‘email@example.com’, they must disclose it in the following way to stop receiving emails on September 5, 2021, for example: ‘firstname.lastname@example.org’. Once the indicated date passes, emails sent to that address will stop.
For this email to work, users must follow a series of steps. They must first make a copy of Google Script in your account and within Google Script you must go to line 13 and change the email address that appears to the one you want to create as ‘disposable’.
Finally, the user has to select the menu ‘Run’, ‘Run function’ and ‘Initialize’. You will then need to authorize the Google script and your temporary email system will be up and running.
In this way, the script will analyze the Gmail inbox every five minutes and will process the messages according to the expiration date, according to labnol.org.