0
Hello Karan, When you send an email in asp.net it is compulsory to provide your credentials (email id and password). So when you send the email, asp.net checks whether your credentials are proper and if they are then it allows you to send the mail.
Once you send an email using asp.net only your Email-ID, Subject line and the Body with any attached document(if any) is sent... There is nothing to worry about providing your password, since your password is not being sent anywhere...
In short, if you want to send a mail in asp.net then you have to provide your credentials. Hope this is what you wanted to know. Please let me know if you have any doubts.
Thank you.
Please mark the answer as accepted if it helped!!!