c# - Sending mail en submit asp.net mvc -


i have send mail on form submit does'nt work me

            // envoyer mail             smtpclient client = new smtpclient("host");             //user name , password goes here                mailmessage mailmessage = new mailmessage { = new mailaddress("someone@somewhere.com") };             mailmessage.to.add("someone@somewhere.com");             mailmessage.subject = "hello there";             mailmessage.body = "hello friend!";              client.host = "host";             client.port = 25;             user name , password             client.enablessl = false;             client.send(mailmessage); 

thank you


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -