I need to be able to send mail from a php application at work, but we have an exchange server, and not a normal mail server and there's no way they would agree to open up an smtp relay and I guess I don't really blame them.
Is there a way to programatically talk to the exchange server directly to send mail if you have the username/password of an account that has a mailbox? Basically it would bypass Outlook completely.
Worse case scenario I can have the machine hosting the VM actually have Outlook open then have some kind of script to relay the info to, but I'm hoping to avoid anything dirty like that.
Oh, and I think we're running exchange server 2010. I'm just guessing though, because we have Office 2010 and windows 7, so I presume they may have done the exchange upgrade at the same time. A few years back they were upgrading a lot of stuff from XP/2003 platform. I have no access or say with the exchange server though so whatever method I go with needs to work without requiring any changes to the server.
Essentially it's for a departemental app I'm working on that is a sorta gray area, boss and everyone else is cool with it, but it's something that needs to stay within the bounds of the department, we can't be changing stuff like server settings etc. Otherwise I'd just ask to see if they can enable SMTP and then I could just use that.
Is there a way to programatically talk to the exchange server directly to send mail if you have the username/password of an account that has a mailbox? Basically it would bypass Outlook completely.
Worse case scenario I can have the machine hosting the VM actually have Outlook open then have some kind of script to relay the info to, but I'm hoping to avoid anything dirty like that.
Oh, and I think we're running exchange server 2010. I'm just guessing though, because we have Office 2010 and windows 7, so I presume they may have done the exchange upgrade at the same time. A few years back they were upgrading a lot of stuff from XP/2003 platform. I have no access or say with the exchange server though so whatever method I go with needs to work without requiring any changes to the server.
Essentially it's for a departemental app I'm working on that is a sorta gray area, boss and everyone else is cool with it, but it's something that needs to stay within the bounds of the department, we can't be changing stuff like server settings etc. Otherwise I'd just ask to see if they can enable SMTP and then I could just use that.
Last edited: