Programaticaly print and send by mail

Hi, I have a question.

I have a MFC app, I want to use PDFCreator to generate a pdf file and then send by email.
I want somehow to specify a filename and email. Is it possible?
I could not find anywhere in the Options where I can specify the email.
What would be the best approach?

thank you,