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
Dawood Abbas
NA
264
99k
How to attach document files to the mails by using sendgrid
May 29 2019 6:11 AM
I would like to attach some files which are at uploading time, but not getting emails where I could save the files everything is good to run.
public ContentResult CompleteAssignedTask(int AssignedTaskId, string FromEmail, string[] fileNames)
{
var client = new SendGridClient("mycode");
var from = new EmailAddress("
[email protected]
", "The SaharaCRM");
var to = new EmailAddress(customer.Email, customer.CustName);
var htmlContent = body;
var msg = MailHelper.CreateSingleEmail(from, to, taskRecord.Subject, "", htmlContent);
msg.AddAttachments(fileNames);
var response = client.SendEmailAsync(msg);
}
Reply
Answers (
4
)
Covert to Image
Encode and Decode of Base64(string) to Excel sheet