Mail API
Is there a way to "track" a mailed could if it's accepted or declined? Example if I cod someone something and they accept or decline, is there a way to track it? I'm wanting to do some functionality when someone accepts my cod, I save the information about the mail. I know mailr tracks sent mails but I'm looking to basically match up a send and receive response.
Would I use "getnextmailid" then store that number and check to see if the mail received back matches the number returned from "getnextmailid"? |
Ok, as your threads are duplicate I'll answer you here and remove the other post in your old thread:
I only know of the following EVENTS that trigger upon incoming emails or interaction with the MAIL_INBOX: Lua Code:
You could use EVENT_MAIL_READBALE e.g. and register a new callback function and check the incoming COD amount by help of the mail id. Or you Pre-hook this function here to above to get the COD amount: Lua Code:
If it is 0 the other one did not accept it, I guesss. I'm not sure if the MailID is the same as the send one but would make sense I guess. |
Thanks for your response, I will have to test out and see if the getnextmailid is indeed the correct mail id for the response when EVENT_MAIL_READABLE and it passes the mail id that was selected , if so this would work. Just really wanting to be able to establish/find a relationship between a send and reply. With out comparing title or something else.
Quote:
|
If you find out please share your research info with us. Thanks
|
All times are GMT -6. The time now is 01:36 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI