I have a client (large company, multiple locations) whose email system uses Microsoft Outlook 2010 and Microsoft Exchange Server. In the past, I have successfully written email routines but they all involved email accounts using POP/SMTP, not Microsoft Exchange Server. Typically, I’d use essentially the same code from the Xojo LR, such as:
[code] SendMailSocket.Address = “mail.xx.rr.com” // your SMTP email server
SendMailSocket.Port = 25 // Check your server for the property port # to use
// Create the actual email message
Dim mail As New EmailMessage
mail.FromAddress = “firstname.lastname@example.org”
mail.Subject = “Test Email from CaseDMS”
mail.BodyPlainText = “I need my new case model approved for release”
mail.headers.appendHeader “X-Mailer”,“Case DMS Request for Approval”
// Add the message to the SMTPSocket and send it
MailProgress.Visible = true
My Xojo desktop app needs to allow the client to automatically generate and send an email to another employee(s) within the same company (e.g., same email system/server). My problem now is that the client’s usage of Microsoft Exchange Server (and Windows Authentication) leaves me clueless where to start. Consider me neanderthal when it comes to server side matters … I spend 100% of my time and programming efforts on the client side. I looked at every reference I could find on the forums here, but there seems to be an abundance of POP/SMTP examples but precious little on how do I make that work with email accounts using MS Exchange Server. What little I did find talked about writing PHP scripts, etc … not in my realm of either understanding or control.
Any suggestions as to where I start or how I’d do this?
Thanks in advance!