Sending HTML mail message
Sending HTML mail message
- Subject: Sending HTML mail message
- From: "Steven M.Palm" <email@hidden>
- Date: Mon, 20 Jan 2003 16:01:52 -0600
I am trying to come up with a simple program for someone to send an
HTML formatted e-mail.
I realize all of the arguments against doing this, so please save your
breath and energy, and don't respond if all you're going to say is
"Don't do it." This is a regular mailing to a group of people who have
specifically expressed an interest in having it in that format.
Pasting HTML code into Mail.app does no good, as the Content-Type:
header is text/plain.
I tried to use NSMailDelivery from the Message.Framework, but cannot
seem to find a way to override the Content-Type header in there, it
still comes up text/plain, even if I include a "Content-Type" header in
the headers: Dictionary.
I tried to use EDMessage.Framework, but the mailAgent method also
includes a text/plain Content-Type. Although I can provide a different
one in the header dictionary, and it includes both of them. Hmm... Not
good, and Mail.app ignores the second one so an incoming message sent
this way comes up plaintext.
I realize that EDMessage has much more, but I cannot find any
documentation on putting the pieces together, and in all honesty I'd
rather use the bundled MacOS X Frameworks if possible.
I have scanned the mailing list archives, and didn't find much more
that was helpful, so does anyone have any thoughts? Do I just have to
drop to BSD sockets and handle the SMTP stuff myself? I'd rather not...
:-)
-----------------------
- Steven M. Palm
- Ham Radio Call: N9YTY
-----------------------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.