System.Net.Mail Help
-
Hi every body i am trying to use mail in my form i have a form name as order form i am taking all the values from the form and i create body of the mail i add from,to,and subject and body to the mail but when i try to send the mail i got some error and i make changes in web.config file also please any one can tell me what are the exact field i have to use in web.config file i will show you what i write in config file <system.net> <mailSettings> <smtp from=""> <network host="" port="3535" userName="" password="" defaultCredentials="true" /> </smtp> </mailSettings> </system.net> please tell me what i have to write in from= and in host= i am very much confused with this please help me its very urgent
-
Hi every body i am trying to use mail in my form i have a form name as order form i am taking all the values from the form and i create body of the mail i add from,to,and subject and body to the mail but when i try to send the mail i got some error and i make changes in web.config file also please any one can tell me what are the exact field i have to use in web.config file i will show you what i write in config file <system.net> <mailSettings> <smtp from=""> <network host="" port="3535" userName="" password="" defaultCredentials="true" /> </smtp> </mailSettings> </system.net> please tell me what i have to write in from= and in host= i am very much confused with this please help me its very urgent
mdazeemuddin wrote:
please help me its very urgent
No, it's really not. We are glad to help you, but your inability to do your job, is not urgent to us at all.
mdazeemuddin wrote:
please tell me what i have to write in from= and in host=
You need to configure this code so that it has a mail server to connect to. I didn't know you could configure this in your web config, I've just written my own code in the past, but the end result is the same. You need a mail server to send mail, and it needs to be visible to your machine for testing, and your server for running live
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
mdazeemuddin wrote:
please help me its very urgent
No, it's really not. We are glad to help you, but your inability to do your job, is not urgent to us at all.
mdazeemuddin wrote:
please tell me what i have to write in from= and in host=
You need to configure this code so that it has a mail server to connect to. I didn't know you could configure this in your web config, I've just written my own code in the past, but the end result is the same. You need a mail server to send mail, and it needs to be visible to your machine for testing, and your server for running live
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
thanks for your support which is the mail server i don't and from were i can get this mail server and i am very new to .net i didn't did this before this is my first time