Showing posts with label SMTP. Show all posts
How to send email using SMTP in ASP.Net / C#?
C#:
public bool Send_Email(string Subject, string Body, string ToEmail, string AttachmentUrl)
{
bool Sent = false;
try
{
if (!string.IsNullOrEmpty(ToEmail))
{
string FromEmail = "", Username = "", Password = "", Host = "", Port = "";
FromEmail =.