in reply to Re^2: How do I get Windmail to send an email attachment
in thread How do I get Windmail to send an email attachment

check the logs?
  • Comment on Re^3: How do I get Windmail to send an email attachment

Replies are listed 'Best First'.
Re^4: How do I get Windmail to send an email attachment
by kjg (Sexton) on Apr 04, 2008 at 14:32 UTC
    Err, there's nothing in the perl error log, and I don't have access to any other logs!
    Never knowingly obfuscated

      Does -f $Form{attachment} return a true value?

      Also, you are aware that your form may be used to send spam, not only to your company but also to any other address, by (for example) setting the subject to "Hi!\nTo: somewhere@example.com"?

        This is what $Form{attachment} outputs: 'T:\Perlcgi\Brief\admin.htm' And yes I am aware. It's not a public webserver, so I'm not worried about that!

        Ah, windmail logs - OK I'll ask the techies here to look in them for me!!
        Never knowingly obfuscated
      You could check $?, but without access to windmail logs, you're poking in the dark
        I have now got to the bottom of the problem. The code was OK.
        The issue was that the document that I wanted to attach to the email had to be on the same server as I was running the script on. I can live with that, but it would be more user friendly if it could be on any server! Any suggestions as to how that would be achieved?
        Never knowingly obfuscated