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);
} 

Madan ShekarRank #428 · 5.9K reputationPosted May 29, 2019, 8:06 PM EDT
Dawood AbbasRank #6,413 · 267 reputationPosted May 30, 2019, 3:21 AM EDT
Thanks riends, I got the answer, above is right answer , was browser problem
Madan ShekarRank #428 · 5.9K reputationPosted May 30, 2019, 3:38 AM EDT
Gajendra JangidRank #157 · 14.9K reputationPosted May 30, 2019, 10:18 PM EDT