Forum Archive

Sending email via Exchange

Kenbo01

I've written an app for viewing information/reports generated off a local SQLite database via a Bottle web server interface. It works well and pull down updated databases from Dropbox etc.

I've also got a facility whereby it can send an HTML report via email from my gmail account.

However, I need to distribute it in a MS Exchange corporate environment, so it would be much cleaner if I could send directly via my Exchange account.

I can't seem to get it to work though. Ideally I'd like to leverage the ios mail client and credentials.

Any ideas?

Thanks

Ken

ccc

mailto:foo@example.com?cc=bar@example.com&subject=Greetings%20from%20Cupertino!&body=Wish%20you%20were%20here!

See Apple's document on URL schemes

Alternatively, you could consider something like http://stackoverflow.com/questions/882712/sending-html-email-using-python IF your Exchange Server is configured for SMTP.

Kenbo01

Of course, I hadn't thought of a mailto: option. Very neat. I will give it a shot.

Kenbo01

Unfortunately it doesn't work in my situation because mailto doesn't accept HTML content, only plain text.

I may have to do a hack using mailto to bring up the mail client with email addresses and subject. I would put the HTML content on the clipboard and rely on a manual paste.

Clunky :(