I am using iTextSharp for creating PDF for reports & send as attachment(). Pdf is created successfully & can be opened locally using Adobe Reader but can’t opened after sent to mail & gives error :
“adobe reader could not open pdf because it is either not a supported file type or because the file has been damaged “
Also pdf file size is zero in attachement.
I think its corrupted in between. what’s may be the issue?
Problem was with Network Security(smtp permissions) rather any programming challenge. Got permissions for SMTP & configure it. Bingo, it’s working.