Link to home
Start Free TrialLog in
Avatar of dds110
dds110

asked on

Send HTML file through Lotus Notes

Hi all.

I need to send an html file through lotus notes as an html email using VBA....not an html file attachment.  Can anyone help?

I'm using Lotus Notes R 5.0.8

I'm posting this in the lotus notes TA as well.

Thanks
Avatar of HemanthaKumar
HemanthaKumar

Check this web link for code that sends mail using LN via VB

http://www.davison.uk.net/vb2notes.jsp

Use SigFile Property to pass your HTML file, this will be downloaded into your Body of the mail as HTML Text.

~Hemanth
Avatar of dds110

ASKER

All of the sites listed here work fine for text or attachments but none explain how to send the html file as html mail.

HemanthaKumar
the sigfile sent the source code of the html file.

Any other help?

Thanks
There was a question answered by nBlade that did exactly what you ask using the Notes API.
Avatar of dds110

ASKER

qwaletee

Code looks good but it appears to be for lotus script.  I've been playing around with it and I keep getting errors.  Can't even compile it.

Thanks anyway.  Any other ideas?
It is for LotusScript but the API callouts sould be the same.  However, you may have to initialize the API, since it is getting called outside of Notes.
An alternative: use the given solution as a Notes agent written in LotusScript, and call the agent from your VB code.  That way, you don't have to worry about how the API works from VB.
I noticed it later that the web page that I posted does only text file imports, not html. But if you were using R6, then the code could can be tweaked to create html body.

Here is a sample script that might be of some help. This is basically done using JavaMail api and there is a tool which has been released on this standards.

http://www-10.lotus.com/ldd/__852565590065A86D.nsf/0/26e053ea10b59f0885256a0d0075b4e0?OpenDocument

Download the code from this site, not sure if this is totally free. But the fee seems to be nominal.
http://www.java4less.com/mail_e.htm 
Avatar of dds110

ASKER

qwaletee

using an agent is not an option.  However, I'm still working with the code from the link you posted.  I seem to be having a problem with this specific line in SimpleMIME.lss:

contenttype = |Content-Type: text/html; charset="us-ascii"| + Chr$(13) + Chr$(10) + Chr$(13) + Chr$(10) + Chr$(13) + Chr$(10)

Was wondering if you couldn't help me out here and tell me how to convert that into the proper string for a VBA module.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of qwaletee
qwaletee

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dds110

ASKER

Thanks, I'll give it a go and see what happens.
Avatar of dds110

ASKER

I'll award these points to qwaletee.  I still havn't got it working, but I believe I can and his/her patience is much deserving.  Thanks to all.
Avatar of Sjef Bosman
OOOPS....