Hi there,
A couple of things....
First, this is not a chat site, but a forum. This means you don't have a direct conversation with others. It migt take a while before you get a reply, so please be patient. Messages like "are you there?" do nothing but clutter up the thread. When "i'm there", I'll post a reply; when I am not, I won't. I am probably in a different timezone than you so it was way past midnight when your messages came in.
Secondly, this:
Quote:
|
What is meant by Does your gmail provides you SMTP Server
|
That's not what I said. I said:
Quote:
|
If you're using a Gmail account, does that also mean you're using GMail's mail server?
|
Even though you're using @gmail as the sender's address, doens't mean you're using their SMTP server. You could have been using a local or LAN based SMTP server, or one provided by your Internet service provider.
Quote:
|
and what about the field "PASSWORD" in web config file.....
|
What do you think this is for? This is clearly your password that you use to log in to Gmail. The password is used by .NET to log in to GMail when it's sending your e-mail.
Quote:
|
you mean that I should write my complete email address
|
Yes. In web.config and in your code you need to write your full e-mail address; not just the part before @gmail.com
Try it again with the correct user name and password in web.config, and with using EnableSsl set to true. It should work.
Otherwise, try the code I posted earlier using .Credentials and make sure you replace your mail server name,
[email protected] and "YourPassword" with our own mail server name, full gmail address and password.
Hope this helps,
Imar