Trying to Send eMail from a File ? - WeOnlyDo Discussion board

Trying to Send eMail from a File ? (General questions)

by Maverick5, Wednesday, January 18, 2006, 01:54 (6884 days ago)

First I:
dim strFile as string
For Each strFile In Directory.GetFiles(mailBoxDir & OUTBOX )
SmtpC.Message.Load(strFile)
SmtpC.SendMessage()
Next

Why does this not work ?
shouldn't I load the message first to the component then send ?

Help, ahhhh

;-)
mav

Re: Trying to Send eMail from a File ?

by wodSupport, Wednesday, January 18, 2006, 09:51 (6883 days ago) @ Maverick5

Yes, that should work. Why doesn't it work, did you check Transcript property? Do you use blocking mode?

Re: Trying to Send eMail from a File ?

by Maverick5, Wednesday, January 18, 2006, 21:22 (6883 days ago) @ wodSupport

It says Component Busy...

I'm not using blocking or transcript,
should I be ?

Mav

Re: Trying to Send eMail from a File ?

by Maverick5, Wednesday, January 18, 2006, 21:35 (6883 days ago) @ Maverick5

set blocking to false, component still busy...

Re: Trying to Send eMail from a File ?

by wodSupport, Wednesday, January 18, 2006, 21:55 (6883 days ago) @ Maverick5

Mav,

how about full code?

Kreso