niravsahayata wrote:
how can i send mails outside the domain??
Are you getting any errors?
Using SmtpClient you should be able to send mails anywhere ....so long as your mail server is correctly configured.
You probably need to check your email configuration.