Sending Mail and NT - Problems

I am developing a program which sends mail with or without attachments, using MS Outlook.

When run on Win95/98 I get ne problems, the mail and its attachments are sent okay, however, when run on NT, I SOMETIMES get the following error:

32002
Unspecified Error

Pretty annoying!!

The NT machine is a Server machine and MS exchange is being used. The error only occurs everynow and then, and only when sending an attachment which is the results of a query or report from an Access database.

The Error occurs ONLY at the point of using the Send command (Which is directed at Outlook)

Any help would be much appreciated

BG
buggodAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

rovermCommented:
Maybe it's the size of the attachment.
If it is too big according to the settings of MSExc, then an error occurs.

grtx, RoverM
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
buggodAuthor Commented:
Thanks people. Checking it out....

BG
0
buggodAuthor Commented:
hes:

Excellent Links!

The problem was that *sometimes* there would be no message in the mail, and MS in their wisdom will not allow this to happen when there is an attachment!!

Simple fix was just to check the size of the message body text and add a space if it is zero bytes.

Nice work, many thanks....

BG
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.