In C# .NET we would need to be able to run a report and save it on the server as a PDF document and then we would attach that PDF in an email we send. Has anyone done this or could anyone tell me the best approach to doing this.This message has been edited. Last edited by: Kerry,
MailMessage mail = new MailMessage();
mail.To = "me@mycompany.com";
mail.From = "you@yourcompany.com";
mail.Subject = "this is the e-mail title";
mail.Body = "this is the e-mail body";
MailAttachment attachment = new MailAttachment( Server.MapPath( "test.pdf" ) ); //create the attachment
mail.Attachments.Add( attachment ); //add the attachment
SmtpMail.SmtpServer = "real.server.name.com";
SmtpMail.Send( mail );