Hotmail Long-Lasting - Dual Token - IMAP Enabled

Hotmail Long-Lasting - Dual Token - IMAP Enabled

Automatic Delivery
Stock: 19207 Sales:411
Price:
$0.02
Official Channel Verified and traceable source
Fast Delivery Delivered within 3 minutes
Wrong Item Replacement Worry-free after-sales support
Default delivery format: email----password----clientid----authorization code. IMAP and POP can be accessed via OAuth2; POP can retrieve junk-folder emails. The token is valid for 3 months. Please replace it with a new token before expiration. If you do not know how to replace it, please contact customer service to obtain the replacement software. Do not change the mailbox password when using the token number; if the password is changed, the token will become invalid. Online mailbox management platform, recommended by the site owner: ms.outlook007.cc. To add email retrieval to your script, please use the following code:
import email
import email.header
import requests
import imaplib

# 1. Use refresh_token to obtain access_token
def get_accesstoken(refresh_token):
data = {
'client_id': '9e5f94bc-e8a4-4e73-b8be-63364c29d753',
'grant_type': 'refresh_token',
'refresh_token': refresh_token
}
ret = requests.post('https://login.microsoftonline.com/consumers/oauth2/v2.0/token', data=data)
print(ret.text)
return ret.json()['access_token']


def generate_auth_string(user, token):
auth_string = f"user={user}\1auth=Bearer {token}\1\1"
return auth_string


def tuple_to_str(tuple_):
"""
Convert tuple to string output
:param tuple_: Tuple before conversion; QQ Mail format is (b'\xcd\xf5\xd4\xc6', 'gbk') or (b' ', None); 163 Mail format is ('', None)
:return: Converted string
"""
if tuple_[1]:
out_str = tuple_[0].decode(tuple_[1])
else:
if isinstance(tuple_[0], bytes):
out_str = tuple_[0].decode('gbk')
else:
out_str = tuple_[0]
return out_str


def fetch_email_body(mail, item):
try:
ret, data = mail.fetch(item, '(RFC822)')
msg = email.message_from_string(data[0][1].decode('utf-8'))
sub = msg.get('subject')
sub_text = email.header.decode_header(str(sub))
# Subject
sub_detail = ''
if sub_text[0]:
sub_detail = tuple_to_str(sub_text[0])
print(sub_detail)
for part in msg.walk():
if not part.is_multipart():
content_type = part.get_content_type()
name = part.get_filename()
if not name:
txt = str(part.get_payload(decode=True))
if content_type == 'text/html':
# mail.store(item, '-FLAGS', '\\SEEN') set as read
print(txt)
except Exception as e:
print(e)


def getmail(sel, mail):
mail.select(sel)
status, messages = mail.search(None, 'ALL') #UNSEEN means unread emails
all_emails = messages[0].split()
print(all_emails)
for item in all_emails:
fetch_email_body(mail, item)


# 2. Connect to IMAP using access token
def connect_imap(emailadr, access_token):
mail = imaplib.IMAP4_SSL('outlook.live.com')
print(generate_auth_string(emailadr, access_token))
mail.authenticate('XOAUTH2', lambda x: generate_auth_string(emailadr, access_token))
getmail('INBOX', mail) # Read inbox
getmail('Junk', mail) # Read junk folder
# Close connection
mail.logout()


# Main flow
if __name__ == '__main__':
emailadr = 'ailbherodeghero31ko@outlook.com'
refresh_token = 'M.C528_BAY.0.U.-CmMFBpzNUjFdE8TSTaOAYW7Mk1UCNmX8kegnGVBL6jEBbmsESxyxX9AuGFSMJShr89onsA5c5uGLLlJXaVVRcE8ZmJ2uyMJZfw17QrDy6rI*uGG8K*K2pdex*o7M1CXwJSSD5bml1ly2NuegVQf3x8MDZ6Tf1pUzLPqee3EII9xeXYb4L*o5O8JQ6DORsRSmi7M7mZJ2Is7nvRg1v*opsXgeUEa5As9A6721vDpObDrOufco6725T7bxJwyMrxAXSVGxmDFJqqG0UpovWnHZAPvo2ypVyqXMwUwx3AZyZLqy4I5I1JtqzO1iLhZd0Z!2g*eZM3VuWlg5OwXO3cSmSTJm8v*buztJm9OMfzVh0QrJb0QeCOr5IYrTgRHWbkBi1UNVZ*TnzaKPbmvH06uFj8jbfE0ALkQjQFVvURmnLTlV'
access_token = get_accesstoken(refresh_token)
print("Obtained access token:", access_token)
# Connect to IMAP
connect_imap(emailadr, access_token)
After completing your order, you can view the account information on the order details page. Each account is usually provided on a separate line. Common separators include:
• Colon : Example: account:password:email:helper_email
• Semicolon ; Example: account;password;email
• Vertical bar | Example: account|password|email|helper
The specific field order and separator for each product are provided in the "Product Description" above. Some products may also include cookie / session files.
Please keep your account information secure. If you encounter any issues during use, please contact customer support promptly.

This information applies to most products but not all. Some products may use different shipping formats.

Before placing an order, please confirm the product specifications, receiving email address, and quantity. Before payment, carefully review the product details, usage recommendations, and after-sales information.

The following recommendations are generated based on the platform associated with the current product to help you use the product more smoothly and in compliance with applicable rules.

  • Before using Facebook-related resources for the first time, confirm that your login information matches the product specifications.
  • It is recommended to use a stable network and device environment that complies with platform policies.
  • After logging in, gradually complete the necessary account information and operate in accordance with Facebook Community Standards, advertising policies, and Terms of Service.
  • Do not share order information, login credentials, or verification information with others.
  • When using the product for the first time, proceed gradually and avoid unusually frequent actions within a short period.
  • If platform policies, regional restrictions, or product specifications change, follow the latest information displayed on the relevant page.
  • Before purchasing, please confirm the platform, region, language, specifications, and quantity.
  • Features, verification methods, available regions, and delivery contents may vary between different specifications.
  • Platform policies, regional restrictions, and third-party service status may affect the actual availability of the product.
  • Do not publicly disclose or forward account details, email addresses, passwords, verification codes, or order information.
  • Do not use the product for illegal activities, fraud, harassment, spam, unauthorized advertising, or other activities that violate platform rules.
  • Product performance and availability may be affected by platform policies, devices, networks, regions, and user operation methods.
  • If the page shows "Sold Out", "Low Stock", or a specification is unavailable for selection, please refer to the real-time inventory status.

Users must comply with the Terms of Service, advertising policies, privacy policies, and applicable laws and regulations of the target platforms. 7KF does not recommend using products for unauthorized promotion, false identities, spam, fraud, or other activities that violate platform rules.

If you encounter login issues, missing order information, or discrepancies with the product specifications, please submit a request through the order page or online customer service within 7 days after order completion. Please provide the order number, screenshots of the issue, and any necessary error information. Customer service will verify and process the request based on the order status, product specifications, and actual issue.

Eligible for After-Sales Support

  • The information received clearly does not match the order specifications
  • The order is shown as completed but the delivery information cannot be viewed
  • The product cannot be delivered according to the page description within the specified time
  • The actual delivery content does not match the content explicitly promised on the page

Not Eligible for After-Sales Support

  • Issues caused by the user modifying, transferring, sharing, or disclosing product information
  • Issues caused by the user's device, network, browser, or changes in third-party platform policies
  • Issues caused by using the product in violation of platform rules or applicable laws and regulations
  • Requests submitted after the after-sales support period without valid order information
  • Regional, specification, feature, or usage restrictions that were clearly stated on the page

Related Tutorials

Before purchasing and using the product, review login steps, basic setup, common questions, and platform rules for a smoother experience.

Telegram客服 工作时间 9-24点
TG订阅频道