I’m using SMTPClient for sending emails to a SMTP server. But with Send method I can specify any false sender name or email. How can I prevent this?
I’m using SMTPClient for sending emails to a SMTP server. But with Send method
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s the job of your mail server to decide on what it accepts as a sender email address – that’s just a matter of policy.
There is no ‘true’ email address for a mail client, so nothing that can be enforced at the client.