BackgroundThe QBO Message modules includes an IMailOutbound interface that defines a contract excepted to send emails. There are several implementations of the interface, including:
Additional providers may be created to handle custom requirements, like invoking a corporate web service to deliver emails via a corporate SMTP server. ConfigurationThere are two configuration files relevant to email deliver:
MailOutbound.config sample: <?xml version="1.0"?> <MailOutbound> <Providers> <!-- Using Gmail as a provider may required app-specific credentials, particularly if you use two-factor authentication. --> <MailOutbound Name="Google" Host="smtp.gmail.com" Port="587" EnableSsl="true" Type="qbo.Message.Providers.Smtp, qbo.Message"/> <!-- This entry depends on the Twilio account created in testing to be active. You can create a new Twilio account, allocate a new number, and enter that number into the Host attribute. --> <MailOutbound Name="SMS" Host="https://api.twilio.com/2010-04-01/+14242171014" EnableSsl="true" Type="qbo.Message.Twilio.SMS, qbo.Message.Twilio"/> <!-- Amazon SES Plugin. Requires corresponding Credential entry--> <MailOutbound Name="SES" Host="us-east-1" Port="0" EnableSsl="true" Type="qbo.Message.Amazon.SES, qbo.Message.Amazon"/> </Providers> </MailOutbound> Notes:
Credential.config sample: <?xml version="1.0"?> <Credentials> <CredentialCache> <!-- Gmail credential --> <Credential UriPrefix="smtp://smtp.gmail.com/" AuthType="Basic" Username="user" Password="password" Domain="" /> <!--Amazon SES matching mailer@quandis.com--> <Credential UriPrefix="smtp://us-east-1/" AuthType="Basic" Username="AAABBBCCC" Password="xxxyyyzzz" Domain="" /> </CredentialCache> </Credentials> Notes: To test email configuration, simply invoke the QBO Message/Send method: // Test the generic provider Message/Message.ashx/Send?ToAddress={your email address}&Subject=Test Email // Test a specific provider Message/Message.ashx/Send?ToAddress={your email address}&Subject=Test Email&Provider=SES |
Quandis Business Objects 3 > qbo.Message >