Need help to export crystal report to PDF format

Hello guys. I need some help and tips on how to export crystal report to pdf format and have it directly saved at the local folder of our website and then have it as an email attachment sent viat SMTP. So far I have only succeeded in the conversion to pdf but couldn’t have it saved in the destination folder, and failed in the attachment via SMTP code too. Any ideas?
