I’m trying to send an email in HTML format and it works fine when I compose the email and hit the send button. The email goes out and I can see it in HTML format in my yahoo and AT&T email account thru the web. The setting in the location document is set to send MIME and in the userpreferences internetmail format is set to HTML Only.
The problems is that when I create a button to email a form, it goes out as text and the table formatting is horrible on it.
Why is it treated different if I send it from my mail db as when it’s sent by a button that has @MailSend as it’s code?
Subject: As usual it depends
Hi John,You need understand the process: when you send out a MIME email from your mailbox the Notes Client does the conversion to MIME and the translation. Sending in mail is done using the form property “Present Mail Dialog” rather the @MailSend function. It seems that the client MIME engine is triggered only by that.
So this are your options:
a) use the form property
b) do your own rendering with the Mime classes
c) Entertain some C calls to the Notes Client API to use the client renderer
for b) have a look at XSLT (I posted some stuff about it earlier: http://www-10.lotus.com/ldd/nd6forum.nsf/ShowMyTopicsAllThreadedweb/aee97755180f953085256e2a005cce73?OpenDocument )
Hth
stw
Subject: Sending HTML Emails
John,You have an interesting question, but it is a bit hard to understand what you are saying.
If I get it right, you are sending a PassThru HTML with a Button on it.
So now, what do you mean by “when I create a button to email a form”?
I have used HTML buttons that send out a mail message that gets actioned by a user in a mailbox before. It is very difficult to get it working.
Regards
Rolf Pfotenhauer
Subject: RE: Sending HTML Emails
Thank you all for your suggestions, I seem to have found the answer. At least partially.
In the server’s Configuration document, under Mime>Conversion Options>Outbound, there’s a field for “Message Content”, I set it to “From Notes to HTML” and that does the conversion to HTML when the emails are sent out, either Programatically or manually. The only issue I still have is that images show up as a placeholder with the red X in the upper left hand corner.
I think I’ve seen a post on that but not sure if if was a solution or someone else having the same problem.
Johnd
Subject: Sending HTML Emails
The client renders the rich text to MIME. It does a fair job of it, but when you send the e-mail programmatically, the client renderer cannot kick in. Thus, the server renders it instead, and it does a fairly awful job of it, but still better than in R5. You have a few choices. You can:
a) use the MIME classes to build your own HTML e-mails,
b) use Java to build your own MIME e-mails,
c) mail everything individually by hand , or
d) use a third party product such as our Midas Rich Text LSX which will either convert to MIME for you from rich text or use HTML to build your MIME messages.
There are advantages to each approach (a-cheap, b-cheap and will impress your friends, c-cheap and easy, d-very easy), and disadvantages to each (a-lots of work if including graphics and such, b-same as a but worse, c-time consuming, d-costs something).