Uniface User Forum

 View Only
  • 1.  MIME encoding - UPOPMail

    Posted 01-04-2024 14:01

    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
    ------------------------------


  • 2.  RE: MIME encoding - UPOPMail

    Posted 01-08-2024 05:12

    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
    ------------------------------



  • 3.  RE: MIME encoding - UPOPMail

    Posted 01-08-2024 07:02

    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
    ------------------------------



  • 4.  RE: MIME encoding - UPOPMail

    PARTNER
    Posted 01-08-2024 07:43

    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
    ------------------------------