API:Emailuser/th

Token
To send an email, an email token is required. This token is equal to the edit token and the same for all recipients, but changes at every login. Email tokens can be obtained via, or by using the following method:

Sending email to users
You can send email to users who have a confirmed email address with action=emailuser. Sending email is subject to rate limits.

ข้อบกพร่อง (error) ที่อาจเกิด
In addition to the :

Checking emailable status
Before trying to send an email, it is recommended to check if the user is emailable first. To do this, you can execute a list query on the user (or several users at once). Here is an example using Ajax:

If you are testing from a client-side script, it is also possible to simply check for the existence of the t-emailuser list item: