Re: automatically send the email from code using NSWorkspace

2009-09-23 Thread Alastair Houghton
On 23 Sep 2009, at 16:31, Jens Alfke wrote: Also, be really careful with your UI. Make it clear to the user that your app is going to send an email on their behalf. Make sure the user knows the sender and recipient addresses, and if possible the message body, and don't send without confirma

Re: automatically send the email from code using NSWorkspace

2009-09-23 Thread Jens Alfke
On Sep 22, 2009, at 8:37 PM, jon wrote: great, found it, Thank you. do you (or someone) know how to get the current machine's default Email address for sending email? I personally don't have a default email address. I have one for home and two for work, and which one I want to use i

Re: automatically send the email from code using NSWorkspace

2009-09-23 Thread jonat...@mugginsoft.com
On 23 Sep 2009, at 04:37, jon wrote: great, found it, Thank you. do you (or someone) know how to get the current machine's default Email address for sending email? rather than typing it into a field like this. emailMessage.sender = [self.fromField stringValue]; Try the AddressBook f

Re: automatically send the email from code using NSWorkspace

2009-09-22 Thread jon
great, found it, Thank you. do you (or someone) know how to get the current machine's default Email address for sending email? rather than typing it into a field like this. emailMessage.sender = [self.fromField stringValue]; thanks again, Jon. On Sep 22, 2009, at 8:35 PM, Nick Zitzman

Re: automatically send the email from code using NSWorkspace

2009-09-22 Thread Nick Zitzmann
On Sep 22, 2009, at 8:16 PM, jon wrote: it works fine, but I want to go ahead and have it automatically send the email, rather than display the email on screen (ready to send)... Can someone point me in the correct direction? Use NSAppleScript or the scripting bridge. There's some sampl

automatically send the email from code using NSWorkspace

2009-09-22 Thread jon
I've set up some code to send an email from my app like so: [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString:eMailString]]; it works fine, but I want to go ahead and have it automatically send the email, rather than display the email on screen (ready to send)... Can someone p