Ralf, in fact, Cach� is trying to write itself a temp file to deal with message text stream. It tries to write in your CACHE.DAT namespace directory. When using terminal, you are probably loged in as root and so Cach� can write in this directory. In background mode your directory don't give permission to Cach� to write (create) the temp files.
Just to make sure, try to chmod 777 your namespace directory. I have a similar problem with terminal X CSP running. It would be good to know, which user Cach� assumes in each situation (bg job, terminal, CSP, ActiveX, etc...) IHTH, Itamar "Ralf Huwald" <ralf.huwald @ mosecker.de> escreveu na mensagem news:[EMAIL PROTECTED] > Itamar, > > I changed the code and the result of the status code is: > ERROR #5005: Cannot open file 'LTIFICJ43RQ.stream' > Should i try to write the textdata to a tempfile, which is attached to the > mail? > > Ralf > > "Itamar" <itamar.at.visaovirtual.dot.com_dot_br> schrieb im Newsbeitrag > news:[EMAIL PROTECTED] > > Ralf, > > > > I had some problems with permissions in Linux. > > Try to get status code from Write(...) method and analyze it. > > Eg.: > > Set sc=MailMessage.TextData.Write(...) > > ...[Log it] > > > > I think it will clarify the problem. > > > > HTH, > > > > Itamar > > > > > > "Ralf Huwald" <[EMAIL PROTECTED]> escreveu na mensagem > > news:[EMAIL PROTECTED] > > > Hi! > > > > > > My routine creates an email using %New.MailMessage. The mail is filled > > with > > > some textlines "Do MailMessage.TextData.Write(...)" and one attachment > "Do > > > MailMessage.AttachFile(...)" > > > > > > When sending the mail from the terminal, it works. When the mail is sent > > > from a background process, the text is not transmitted. > > > > > > Any ideas? > > > > > > I am usinc Cach� 5.0.5 / Linux. > > > > > > Thanks, Ralf > > > > > > > > > > > >
