TMail - Temporary Multi Domain Email System
API Documentation
TMail - Temporary Multi Domain Email System
By Harshit Peer
TMail - Temporary Multi Domain Email System
List of Domains
URL
https://yourdomain.com/actions.php?action=getDomains&apikey=[yourkey]
Parameters
Key
Value
action
getDomains
apikey
Key which you may have set in your Admin Panel of TMail Installation. In case
you have not set that, you can keep this blank
Sample Response
[
"kealed.cf",
"bavfau.gq"
]
Create Email ID
URL
https://yourdomain.com/user.php?user=[emailID]&apikey=[yourkey]
Parameters
Key
Value
user
Based on the domains available you can send a generated email ID. If this
parameter is not specified, system will generate a random email ID and return
that.
Sample Response
harshit@bavfau.ga
TMail - Temporary Multi Domain Email System
Fetch Emails
URL
https://yourdomain.com/mail.php?email=[emailID]&apikey=[yourkey]
Parameters
Key
Value
email
Pass the returned email ID from above step in order to receive emails related to
that ID.
apikey
Key which you may have set in your Admin Panel of TMail Installation. In case
you have not set that, you can keep this blank
Result
Above API call will provide a JSON response with all details of all emails in the inbox of
particular email ID. It will provide file name and link to download for Attachments. It will
also provide links Delete and Download emails. Make sure you append your API key (like
&apikey=[yourkey] ) to the end of Delete and Download URLs.
Sample Response (with Attachments)
[
{
"textPlain": "API Test with Attachments\r\n",
"textHtml": "\r\nAPI Test with Attachments</div></div>\r\n",
"id": 7,
"date": "2018-12-26 04:11:39",
"headersRaw": "Return-Path:
",
"headers": {
"date": "Wed, 26 Dec 2018 14:41:39 +0530",
"Date": "Wed, 26 Dec 2018 14:41:39 +0530",
"subject": "API Testing with Attachments",
"Subject": "API Testing with Attachments",
"message_id": "",
"toaddress": "harshit@bavfau.gq",
"to": [
{
"mailbox": "harshit",
"host": "bavfau.gq"
}
],
"fromaddress": "Harshit Peer ",
"from": [
{
"personal": "Harshit Peer",
"mailbox": "harshit",
"host": "gmail.com"
}
TMail - Temporary Multi Domain Email System
],
"reply_toaddress": "Harshit Peer ",
"reply_to": [
{
"personal": "Harshit Peer",
"mailbox": "harshit",
"host": "gmail.com"
}
],
"senderaddress": "Harshit Peer ",
"sender": [
{
"personal": "Harshit Peer",
"mailbox": "harshit",
"host": "gmail.com"
}
]
},
"subject": "API Testing with Attachments",
"fromName": "Harshit Peer",
"fromAddress": "harshit@gmail.com",
"to": {
"harshit@bavfau.gq": null
},
"toString": "harshit@bavfau.gq",
"cc": [],
"bcc": [],
"replyTo": {
"harshit@gmail.com": "Harshit Peer"
},
"messageId": "",
"tmail_attachments": [
[
"Readmetxt",
"http://envato.stackants.com/tmail/demo/modern/attachments/harshit@bavfau.gq/8/Readme.txt"
]
],
"tmail_delete_url":
"http://envato.stackants.com/tmail/demo/modern/actions.php?action=delete&id=8&email=harshit@bavfau.gq",
"tmail_download_url":
"http://envato.stackants.com/tmail/demo/modern/actions.php?action=download&id=8&email=harshit@bavfau.
gq"
}
]
TMail - Temporary Multi Domain Email System
Sample Response (without Attachments)
[
{
"textPlain": "API Test\r\n",
"textHtml": "\r\nAPI Test</div></div>\r\n",
"id": 7,
"date": "2018-12-26 04:11:39",
"headersRaw": "Return-Path:
",
"headers": {
"date": "Wed, 26 Dec 2018 14:41:39 +0530",
"Date": "Wed, 26 Dec 2018 14:41:39 +0530",
"subject": "API Testing",
"Subject": "API Testing",
"message_id": "",
"toaddress": "harshit@bavfau.gq",
"to": [
{
"mailbox": "harshit",
"host": "bavfau.gq"
}
],
"fromaddress": "Harshit Peer ",
"from": [
{
"personal": "Harshit Peer",
"mailbox": "harshit",
"host": "gmail.com"
}
],
"reply_toaddress": "Harshit Peer ",
"reply_to": [
{
"personal": "Harshit Peer",
"mailbox": "harshit",
"host": "gmail.com"
}
],
"senderaddress": "Harshit Peer ",
"sender": [
{
"personal": "Harshit Peer",
"mailbox": "harshit",
"host": "gmail.com"
}
]
},
"subject": "API Testing",
"fromName": "Harshit Peer",
"fromAddress": "harshit@gmail.com",
"to": {
"harshit@bavfau.gq": null
},
"toString": "harshit@bavfau.gq",
"cc": [],
"bcc": [],
"replyTo": {
TMail - Temporary Multi Domain Email System
"harshit@gmail.com": "Harshit Peer"
},
"messageId": "",
"tmail_attachments": [],
"tmail_delete_url":
"http://envato.stackants.com/tmail/demo/modern/actions.php?action=delete&id=7&email=harshit@bavfau.gq",
"tmail_download_url":
"http://envato.stackants.com/tmail/demo/modern/actions.php?action=download&id=7&email=harshit@bavfau.
gq"
}
]