[NonAction]
public void SendVerificationLinkEmail(string emailID, string activationCode)
{
var verifyUrl = "/FloralAccounts/VerifyAccount/" + activationCode;
var link = Request.Url.AbsoluteUri.Replace(Request.Url.PathAndQuery, verifyUrl);
var fromEmail = new MailAddress("Here Is My Email", "Zubair Alam");
var toEmail = new MailAddress(emailID);
var fromEmailPassword = "Here Is My Password"; // Replace with password
string subject = "Your account is successfully created!";
I Want to Add One Image In string Body Inside
string body = "
We are excited to tell you that your Floral Shop account is" +
We are excited to tell you that your Floral Shop account is" +
" successfully created. Please click on the below link to verify your account" +
"
" + link + " ";
" + link + " ";
var smtp = new SmtpClient
{
Host = "smtp.gmail.com",
Port = 587,
EnableSsl = true,
DeliveryMethod = SmtpDeliveryMethod.Network,
UseDefaultCredentials = false,
Credentials = new NetworkCredential(fromEmail.Address, fromEmailPassword)
};

Rajeesh MenothRank #118 · 18.4K reputationPosted Nov 5, 2018, 4:53 PM EST
Sanwar RanwaRank #23 · 44.7K reputationPosted Nov 5, 2018, 5:18 PM EST
Madan ShekarRank #428 · 5.9K reputationPosted Nov 5, 2018, 7:49 PM EST
DomainUrL + Folder Name + Filename
We are excited to tell you that your Floral Shop account is" +