Estou tentando enviar 2 arquivos em anexo em um email.
Ambos sao PDF de 500kb cada.
public void SendFiles(FormFile page1, IFormFile page2)
{
using (var message = new MailMessage())
{
...
message.Subject = "Documents";
message.Body = "";
message.IsBodyHtml = false;
var ms1 = new MemoryStream();
var ms2 = new MemoryStream();
page1.CopyTo(ms1);
page2.CopyTo(ms2);
var fileBytes1 = ms1.ToArray();
var fileBytes2 = ms2.ToArray();
Attachment att1 = new Attachment(new MemoryStream(fileBytes1), Page 1");
Attachment att2 = new Attachment(new MemoryStream(fileBytes2), Page 2");
message.Attachments.Add(att1);
message.Attachments.Add(att2);
using (var client = new SmtpClient("..."))
{
try
{
client.Send(message);
return true;
Acontece que quando envio, os arquivos anexos ao email chegam com 4MB cada um.
Onde estou errando aqui ?
Abracos