tempmail-python
tempmail-python copied to clipboard
Getting issue while fetching mail id
Getting error while splitting mail ID from gmail.
username, domain = address.split('@')
^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 2, got 1)
Kindly check this. Getting subject and body of mail but just username or mail id from where mail is coming is not getting.
Getting error while splitting mail ID from gmail.
username, domain = address.split('@') ^^^^^^^^^^^^^^^^ ValueError: not enough values to unpack (expected 2, got 1)Kindly check this. Getting subject and body of mail but just username or mail id from where mail is coming is not getting.
This code is wrong. It checks body of mail as address, but it should include mail id. Check this code in providers.py file
This is the output I'm getting while printing the address.
Hi, seems like you're using the library incorrectly.
In this line:
email = EMail(msg.body)
You are trying to pass msg.body to EMail, but EMail only accepts address ([email protected])
Getting error while splitting mail ID from gmail.