in reply to Re^4: email on WIN32
in thread email on WIN32

By the sounds of it you are going to have to do some debugging (see Basic debugging checklist) or use one of the other methods suggested.

Martin