This commit is contained in:
Zakharov_Rostislav 2024-05-27 01:55:45 +04:00
parent 3a590e97b7
commit 7cc6f0341c
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ namespace BankBusinessLogic.MailWorker
objMailMessage.Body = info.Text;
objMailMessage.SubjectEncoding = Encoding.UTF8;
objMailMessage.BodyEncoding = Encoding.UTF8;
Attachment attachment = new Attachment("C:\\Users\\user\\Downloads\\TransfersWithdrawalsList.pdf", new ContentType(MediaTypeNames.Application.Pdf));
Attachment attachment = new Attachment("C:\\Users\\pdffile.pdf", new ContentType(MediaTypeNames.Application.Pdf));
objMailMessage.Attachments.Add(attachment);
objSmtpClient.UseDefaultCredentials = false;
objSmtpClient.EnableSsl = true;

View File

@ -522,7 +522,7 @@ namespace BankManagersClientApp.Controllers
}
APIClient.PostRequest("api/report/sendtransferswithdrawalstoemail", new ReportBindingModel
{
FileName = "C:\\Users\\user\\Downloads\\TransfersWithdrawalsList.pdf",
FileName = "C:\\Users\\pdffile.pdf",
DateFrom = dateFrom,
DateTo = dateTo,
Email = APIClient.Client.Email,