Temp Mail

FREEMIUM
(Ким) Privatix | Оновлено 20 दिन पहले | Tools
Популярність

9.9 / 10

Затримки

200ms

Рівень обслуговування

100%

Health Check

N/A

Повернутися до всіх обговорень

Could you please provide some examples how to generate new mail address

Rapid account: Pavel Kandratsyeu
Pavel_Kandratsyeu
6 वर्ष पहले

How to generate new mail address with Temp mail API?

Rapid account: Privatix
Privatix Commented 6 वर्ष पहले

Hello,
We had some temporary difficulties in the last 2 days due to the large volume of emails.
Now the API working 100% properly.

Rapid account: Yuriysechko
yuriysechko Commented 6 वर्ष पहले

Seems it’s impossible to generate new e-mail with TempMail API (at least there are not such methods mentioned in official documentation for the API).

The workaround is to fetch home page of TempMail service (the page will contain new e-mail as long as you don’t supply any cookies during request), parse it and extract e-mail. Quick and dirty “hack” with curl:

curl https://temp-mail.org/en/ | grep '<input id="mail"'

Result:

<input id="mail" onclick="select(this);" data-original-title="Your temporary Email address" class="mail opentip" value="xubakuwe@yk20.com" data-placement="bottom" title="" type="text" readonly>

Then you can interact with new box via API (just don’t forget to specify not e-mail address but its MD5 hash).

Obviously, it’s not a perfect solution. Because HTML layout of the page can be changed without prior notice (and you have to bother with parsing anyway).

Приєднуйтесь до обговорення — додайте повідомлення нижче:

Вхід / Реєстрація, щоб публікувати нові повідомлення