Hey,
How would I be able to send emails using Cocoa? Which framework would I use, and how would I use it. This is very new to me so please go easy.
Best Regards,
Kevin
Hey,
How would I be able to send emails using Cocoa? Which framework would I use, and how would I use it. This is very new to me so please go easy.
Best Regards,
Kevin
You can use opening the default mail client or you can use a framework. This should get you started.
For Growl 1.2, I wrote a Python-based mail-sending program, which the MailMe display runs using NSTask.
I did this largely out of dissatisfaction with the other mail frameworks for Cocoa, most of which also support receiving mail, which is unnecessary for something output-only like MailMe.
Check out:
http://www.collaboration-world.com/pantomime
I haven't looked at it in several years, but when I was at Apple I advocated that we include it with the OS to replace the mail functionality we'd lost in the NeXT/Apple transition.
Apple's Developer Connection has a sample project called SBSendEmail which demonstrates how to use a Scripting Bridge to send email via scripting to the Mail app.
You can download the whole project and run it in XCode to see how it works. Of particular interest to you will be the sendEmailMessage: method in Controller.m