Author: WebMix | Posted on: 2/10/2010 10:30:55 AM | Views : 258

Hi
The website is on a shared hosting server with the trust levels set to medium.
I am sending an e-mail from the website (to confirm a booking) and need to attach a PDF doc (directions) with the mail.
The server is rejecting the mail because of the trust level.
My code line for the attachment is:

        //mail.Attachments.Add(new System.Net.Mail.Attachment("c:/Domains/booking.proteafarm.co.za/images/DirectionsToProteaFarmMontagu.pdf"));        mail.Attachments.Add(new System.Net.Mail.Attachment("c:/Domains/booking.proteafarm.co.za/images/DirectionsToProteaFarmMontagu.pdf"));
Is there a way I can attach the file without been blocked by the medium trust level? Which I cannot change.
Till later
Michael

Go to the complete details ...