Sending mails from app in OSX - objective-c

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.

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.

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"]];

Related

How to send generated passkit to Wallet?

I generated a passbok file in Java that I want to share with the wallet applications in iOS and Android. The method creates a
.pkpass file so... how can I send it to the Wallet applications? I find really few information about this step...
You can email it to users or put it on a web server with a header Content-Type: application/vnd.apple.pkpass. Or you can use the PKAddPassesViewController to add to Wallet via an app.

how to log pushbullet notifications which is showing through chrome browser extension?

I am using pushbullet to receive my phone notifications to my computer through pushbullet chrome extension. see Now i can get pushbulllet notifications from my phone to computer which is completely fine. but, i want to log those notifications somewhere which is very useful if i'm not in front of my computer because the notification are showing for very limited time.
basically i am a PHP developer,is there any way to achieve this using pushbullet API?.
thanks
charles

Automatic reply from Gmail to WebMail

I'm using Selenium WebDriver to test the web mail I've develop in one of my websites.
How can I set up a test script that when I send an email from the web mail to Gmail, Gmail will automatically reply to that email? I'm still fairly new using Java language.
I don't think setting up a selenium script to send a reply from gmail is the way to go. Since you are testing only your own application, you should refrain from creating scripts to automate replies from gmail as they further add a level of complexity and extra effort.
There are better ways to do what you want and I believe "Canned Responses" in gmail labs can be your savior.
Check out this link for more information on it :
Auto Responder to specific email addresses
You can also connect to the gmail address via POP3 in your java code and check for the email from your web mail and respond to that via java code itself. However, I think, the above solution (Canned Responses) would be the cleanest and the best approach.

Is there a way to send WhatsApp messages from desktop / server box?

I need online notifications from an enterprise information system.
Exists a way to send messages via WhatsApp instead SMS?
(I work with linux)
I have digging stackoverflow for an answer unsuccessfully.
to send server status to you. pushover alternative: node-xmpp-client with facebook sample and register fake facebook account
They are not official API neither a tool to send messages programmatically.

Email sending from iOS

Can I send email messages from my iPad application without using MFMailComposeViewController? Its possible to use SBSendMail in iOS?
No, there is no other native way to send e-mails except with MFMailComposerViewController.
No, you cannot use SBSendMail as that is only available on Mac (and is just a demo, BTW).
You could implement your own SMTP client to interface with a mail server (which would be a lot of work) or maybe there's an implementation out there that you could port, but it still wouldn't be of any use to you as you can't query which e-mail server(s) are configured in the iPhone/iPad.
To send mail in iOS, you need to use MFMailComposeViewController. SBSendMail is for sending mail in Mac OS.
Check this link.
You can now to this using URL schemes in iOS. You would specific the url scheme of the app you wanted to use, and call UIApplication.shared.openURL(url) on it.
I have written a blog post on this matter here if you wanted a closer look