@Jo116
Welcome to the HP Forums. I would be happy to help you with your HP ENVY 5640 printer. I understand that you are unable to scan to email and you have already done some preliminary troubleshooting.
Set up the Scan to Email profile.
- On the printer control panel, touch the Scan icon (
), and then touch Email.
- On the welcome screen, touch Continue.
- Touch inside the Email: box, type in your email address, and then touch Done.
- Touch Continue.
- A PIN is sent to the email address you entered. Touch Continue.
- Touch PIN, enter the PIN you received in your email, and then touch Done.
- Touch Store Email or Auto-login, depending on how you want the printer to store your login information.
Click here and follow the steps mentioned in the document to fix this issue.
Let me know how it goes.
Cheers.
Sandytechy20
I am an HP Employee