Ver Mensaje Individual
  #4 (permalink)  
Antiguo 22/10/2012, 09:33
chcma
 
Fecha de Ingreso: junio-2003
Ubicación: Asturias
Mensajes: 2.429
Antigüedad: 20 años, 11 meses
Puntos: 7
Respuesta: Como librear fichero creado por otro porceso ?? C#

Claro, no hay problema.

Yo lo hice así:

Código:
            MailMessage objMessage = new MailMessage(from, to, subject, string.Empty);


            foreach (string file in files)
            {
                try
                {

                    MemoryStream ms = FileManager.GetFileStream(file);
                    
                    objMessage.Attachments.Add(new Attachment(ms, new FileInfo(file).Name));

                    ms.Close();

                } catch (Exception) { }
            }
__________________
Charlie.