Hi
Welcome to the HP Support Forums!
I see that you're unable to scan to email with your HP Deskjet 3510 Printer. I would be happy to help you and please remember to return to this thread and mark 'Accept as Solution', if I have successfully helped you resolve the issue. If you wish to say 'thanks' for my effort to help, click the 'thumbs up' to give me a Kudos.
I understand that printing from other applications works well, other than the Windows 10 Mail app.
Have you made sure that the Windows 10 Mail app is set as the default mail program? Please use this guide for step by step instructions: How to Set Your Default Apps in Windows 10.
If you're still experiencing issues, please contact the developer for support.
Please respond to this post with the result of your troubleshooting. I look forward to hearing from you. Good Luck!