The SmtpClient can be used by code:
SmtpClient mailer = new SmtpClient();
mailer.Host = "mail.youroutgoingsmtpserver.com";
mailer.Credentials = new System.Net.NetworkCredential("yourusername", "yourpassword");
More Related Contents:
- Why do I get “‘property cannot be assigned” when sending an SMTP email?
- mail sending with network credential as true in windows form not working
- C# sending mails with images inline using SmtpClient
- Send HTML email via C# with SmtpClient
- What are best practices for using SmtpClient, SendAsync and Dispose under .NET 4.0
- C# SmtpClient class not able to send email using gmail
- SmtpClient with Gmail
- Can I test SmtpClient before calling client.Send()?
- Can’t auth to Gmail smtp via MailMessage & smtpClient
- smtpclient ” failure sending mail”
- SmtpClient: A connection attempt failed because the connected party did not properly respond after a period of time
- System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated
- System.Net.Mail creating invalid emails and eml files? Inserting extra dots in host names
- How to send an e-mail with C# through Gmail
- How to create a XSD schema from a class?
- Mock static property with moq
- Brief explanation of Async/Await in .Net 4.5
- ASP.Net MVC route to catch all *.aspx requests
- How do I check if a number is positive or negative in C#?
- How to find List has duplicate values in List [duplicate]
- C# : changing listbox row color?
- visual studio 2005 designer moves controls and resizes Form
- Using DLLs in VBScript
- How to execute the loop for specific time
- I thought await continued on the same thread as the caller, but it seems not to
- Is my process waiting for input?
- How do I get an Excel range using row and column numbers in VSTO / C#?
- Multi-threading with .Net HttpListener
- Place watermark image on other images (C#, ASP.Net)
- Modelling polymorphic associations database-first vs code-first