Re: Message.framework
Re: Message.framework
- Subject: Re: Message.framework
- From: Uli Kusterer <email@hidden>
- Date: Tue, 29 Nov 2005 20:43:10 +0100
Graham,
SMTP is a very simple protocol, so it wouldn't be hard at all to
just open a socket to that server and send out your mail message
using NSFileHandle. SMTP was designed so it could be entered without
an MTA simply using telnet, after all. You just have to filter out
lines containing a dot and of course filter the subject line and e-
mail address to be only a single line.
Message.framework probably won't work here. Though one thing you
could try before rolling your own SMTP server: If these user accounts
are minimal and will never be used by actual users logged in with an
OS X GUI, you could try to write the info you want to NSUserDefaults.
I.e. pretend you are Mail.app and you're saving your main account. It
might be enough to trick NSMailDelivery into thinking Mail.app had
set up an account already and might make it send to that.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden