пути пофиксила
This commit is contained in:
parent
7ae4464b36
commit
2a09fd2ffe
@ -25,8 +25,8 @@ namespace LawFirmBusinessLogic.MailWorker
|
||||
objMailMessage.Body = info.Text;
|
||||
objMailMessage.SubjectEncoding = Encoding.UTF8;
|
||||
objMailMessage.BodyEncoding = Encoding.UTF8;
|
||||
//Attachment attachment = new Attachment("D:\\Уник\\2 курс 4 семестр\\РПП\\курсач\\LawFirm\\LawFim\\LawFirmRestApi\\file4.pdf", new ContentType(MediaTypeNames.Application.Pdf));
|
||||
Attachment attachment = new Attachment("E:\\reports\\pdf\\file.pdf", new ContentType(MediaTypeNames.Application.Pdf));
|
||||
//Attachment attachment = new Attachment("D:\\CourseWork\\pdffile.pdf", new ContentType(MediaTypeNames.Application.Pdf));
|
||||
objMailMessage.Attachments.Add(attachment);
|
||||
|
||||
objSmtpClient.UseDefaultCredentials = false;
|
||||
|
@ -107,7 +107,7 @@ namespace LawFirmRestApi.Controllers
|
||||
{
|
||||
DateFrom = report.DateFrom,
|
||||
DateTo = report.DateTo,
|
||||
FileName = report.FileName,
|
||||
FileName = "D:\\CourseWork\\pdffile.pdf",
|
||||
GuarantorId = report.GuarantorId,
|
||||
LawyerId = report.LawyerId,
|
||||
Email = report.Email,
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user