Hi Lyle,
I guess I owe you an apology. I totally misread your reply!
I am really sorry for that!
Peter and Larry both are teling me that you are right, and you are!
I totally misunderstood your 'guessing'. (I guess I was a bit pissed because my newsserver failed
again)
Again: I am sorry and appreciate your help.
It's not the line-wrap that errors (thanks Peter) but it's probably the fact that I don't fully
understand the code.
So I ask for more explanation. (Hope I am specific enough now)
What did I try?
I pasted the code in a new module. (fixed the line-wrap)
I get an error on the first line with code in a form like:
Sub TestMail()
Class_Initializ e
ToAddressAdd "ad*****@test.n l"
BCCAddressAdd "in**@test. nl"
MessageIs "bla bla" & vbNewLine & "second line here"
SubjectIs "Testmail"
FileAdd "C:\test\test.z ip"
Send
end sub
If I comment-out the first line indeed a mailmessage (with attachment!) shows up in the OE-Outbox,
great!!
But how or when is the Class_Initializ e code used?
Other problems:
When I use the sub again the ToAddress-line and BCCAddress-line are doubled.
ToAddress: ad*****@test.nl ;ad*****@test.n l
BCCAddress: in**@test.nl;in **@test.nl
Also the attachment shows up twice
(or trippled on the third try and so on)
What am I doing wrong ?
Arno R
"Lyle Fairfield" <Mi************ @Invalid.Com> schreef in bericht
news:Xn******** ***********@130 .133.1.4...
ar*****@tiscali .nl (Arno R) wrote in news:7599ce12.0 310230414.34a5a 665
@posting.google .com:
Hi Lyle,
This class should send attachments via Outlook Express. But WHY? CDO is
much simpler and much stronger.
I need info for OE because not all of my clients will have the
CDO-library installed.
Or am I missing something obvious here?
Thanks very much for the info but, could you explain a bit more on how
to use this code please?
I guess I start with initializing the class but this immediately
errors?
Should I guess what these errors are?
--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)