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

Thanks. I've tided the script up to:
open MAIL, "|c:/windmail/windmail -t"; print MAIL "To:$Email\@ybs.co.uk\n"; print MAIL "From:Internal_Comms\@ybs.co.uk\n"; print MAIL "Subject:".$mailsubject." \n"; print MAIL "Attach:".$attachment."\n\n"; print MAIL $mailtext; close MAIL;
but I'm now getting:
To: me From: Internal_Comms Subject: Any text Message body: Some text
Once again, the email looks like it has an attachment in my inbox, but there is no attachment when I actually read the email.
Somethings still not right, plainly!

Replies are listed 'Best First'.
Re^3: How do I get Windmail to send an email attachment
by Anonymous Monk on Apr 04, 2008 at 14:28 UTC
    check the logs?
      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"?

        You could check $?, but without access to windmail logs, you're poking in the dark