Erich Snijder.
Erich Snijder.

Reputation: 1

Sending mails from app in OSX

What's the best way to send an e-mail from my OSX app. I'm developing a app and i need to send an invoice by mail to my customers.

I've been looking on the internet for information but most of the info is for IOS.

Upvotes: 0

Views: 162

Answers (2)

Grady Player
Grady Player

Reputation: 14539

There are lots of different ways to do this, from connecting to a server yourself and sending the appropriate headers and encoded body to the very easiest which is just opening a mail url, which will invoke the default behavior...

[[NSWorkspace sharedWorkspace] openURL:[NSURL urlWithString:@"mailto://bob@example.com?subject=test"]];

Upvotes: 0

f4root
f4root

Reputation: 495

Can you use a server to send your e-mail ? Not only server but one server-side application to due that.. did you can you a java application with SES (AWS Amazon) integration or google app engine solution for example.

Upvotes: 2

Related Questions