Live. I'm developing a website in C #, asp.net with visual studio feature. I would like to put a small form where the site viewer places your email to subscribe to a newsletter. I have already researched ways to do this but I have not found any correct ones. I do not know how it works, if it needs resources to other tools, etc.
Something like that - > (doneonWIX.com)
Codeusedtoenforcethisoperation:
MailMessagemail=newMailMessage();SmtpClientclient=newSmtpClient();client.Port=25;client.DeliveryMethod=SmtpDeliveryMethod.Network;client.UseDefaultCredentials=false;client.Host="smtp.gmail.com";
mail.To = "[email protected]"; //
mail.From = "[email protected]";
mail.Subject = "this is a test email.";
mail.Body = "this is my test email body";
client.Send(mail);