-2
Viva. I’m developing a website in c#, Asp.net using visual studio. I would like to place a small form where the website viewer places his email to subscribe to a newsletter. I’ve researched ways to do it but I haven’t found any correct ones. I don’t know how it works, if other tools need resources, etc..
Something like -> (made on WIX.com)
Code used to highlight this operation:
MailMessage mail = new MailMessage();
SmtpClient client = new SmtpClient();
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);
Try to improve your question. post what has already done so that someone can help you.
– Edu Mendonça
I have a whole site done, it’s just not in production yet. I’ve already edited the question with an example I did on the Wix site.com
– Antonio Choinas