Skip to main content

Hello
I have a problem running the email sending tool.
When executing a routine in a production environment, the email sending service is failing when attaching a file, returning -14 from the AddAttachmentFromFile() function. I would like to know the possible causes for this problem.



------------------------------
Lucas Hevandro Gonçalves da Silva
Lucas Hevandro
Rocket Forum Shared Account
------------------------------

Hello
I have a problem running the email sending tool.
When executing a routine in a production environment, the email sending service is failing when attaching a file, returning -14 from the AddAttachmentFromFile() function. I would like to know the possible causes for this problem.



------------------------------
Lucas Hevandro Gonçalves da Silva
Lucas Hevandro
Rocket Forum Shared Account
------------------------------

Hi Lucas,

I suppose that same issue does NOT happen into development environment... right?

Few hints questions:
1)  Is attached file readable?
2) Is attached filename containing spaces?
3) Is attached file very large?

Regards,
Gianni



------------------------------
Gianni Sandigliano
IT
------------------------------

Hi Lucas,

I suppose that same issue does NOT happen into development environment... right?

Few hints questions:
1)  Is attached file readable?
2) Is attached filename containing spaces?
3) Is attached file very large?

Regards,
Gianni



------------------------------
Gianni Sandigliano
IT
------------------------------

Hi,

Exactly, the development environment works normally.

1)  Is attached file readable?

   Yes, all tested files are readable. They were tested during development and worked normally.


2) Is attached filename containing spaces?

  Some files yes, others no.


3) Is attached file very large?

   A maximum of 1 MB



------------------------------
Lucas Hevandro Gonçalves da Silva
Lucas Hevandro
Rocket Forum Shared Account
------------------------------

Hi,

Exactly, the development environment works normally.

1)  Is attached file readable?

   Yes, all tested files are readable. They were tested during development and worked normally.


2) Is attached filename containing spaces?

  Some files yes, others no.


3) Is attached file very large?

   A maximum of 1 MB



------------------------------
Lucas Hevandro Gonçalves da Silva
Lucas Hevandro
Rocket Forum Shared Account
------------------------------

Are you running in a CS environment where the services are running something like

[SERVICES_EXEC]
*.*=$PATH:*.*

If so, try putting UPOPMAIL=UPOPMAIL above this line, so the upopmail is run 'local'. 
Uniface dlls will try and run as remote services under these circumstances, and it is one of the things which tends to change between devel and production (whether the CS is on or off...)

Iain



------------------------------
Iain Sharp
Head of Technical Services
Pci Systems Ltd
Sheffield GB
------------------------------