kjg has asked for the wisdom of the Perl Monks concerning the following question:
The variables are being read from a web-form, but essentially are just text:use Win32::ODBC; use CGI qw(:standard); use CGI::Carp qw/fatalsToBrowser/; $mailsubject = "Subject: ".$Form{'subject'}; $attachment = "Attach: ".$Form{'attachment'}; 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\n"; print MAIL "Attach:".$attachment."\n\n"; print MAIL "\n\n"; print MAIL $mailtext; close MAIL;
When the email arrives in my inbox, it has the little attachment icon against it, but when I open the email there actually is no attachment. What gives?To: me From: Internal_Comms Subject: Any text Message body: T:\Anything.pdf Some text
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I get Windmail to send an email attachment
by Anonymous Monk on Apr 04, 2008 at 14:15 UTC | |
by kjg (Sexton) on Apr 04, 2008 at 14:24 UTC | |
by Anonymous Monk on Apr 04, 2008 at 14:28 UTC | |
by kjg (Sexton) on Apr 04, 2008 at 14:32 UTC | |
by Corion (Patriarch) on Apr 04, 2008 at 14:38 UTC | |
| |
by Anonymous Monk on Apr 04, 2008 at 14:36 UTC | |
| |
|
Re: How do I get Windmail to send an email attachment
by jepri (Parson) on Apr 05, 2008 at 12:58 UTC |