PHP通过HTTPS自动发送电子邮件和OWA

I want to write a script for a web app that sends automated confirmation/notification emails. I had it working with PHP mailer and gmail but I now need to do it for Outlook using OWA over HTTPS. Also the email needs to send an attached pdf document generated using fpdf and an uploaded file. The data for the attachments is from a MySQL server. Any suggestion would be greatly appreciated. Also if you guys know another way to do it using another programming language please let me know but keep in mind it should be able to be integrated with the rest of the scripts since I have about 60-70 php scripts and this is the last one... Thanks guys

You may consider using Exchange Web Services (EWS). See EWS Managed API, EWS, and web services in Exchange for more information.