TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Zubair Alam
NA
11
1k
How Can I Add Image In Gmail Body Panel MVC 5
Nov 5 2018 1:47 PM
[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 = "<br/><br/>We are excited to tell you that your Floral Shop account is" +
" successfully created. Please click on the below link to verify your account" +
" <br/><br/><a href='" + link + "'>" + link + "</a> ";
var smtp = new SmtpClient
{
Host = "smtp.gmail.com",
Port = 587,
EnableSsl = true,
DeliveryMethod = SmtpDeliveryMethod.Network,
UseDefaultCredentials = false,
Credentials = new NetworkCredential(fromEmail.Address, fromEmailPassword)
};
Reply
Answers (
3
)
How to log keys?
how to clear previous values during looping.