in reply to Net:::SMTP and Attaching a xlsx
Thank you for your reply. I may be heading in the wrong direction. I believe that xlsx needs base64 encoding. I used the following to encode the data
.my $buf; use MIME::Base64 qw(encode_base64); open(FILE, "$attachfile") or die "$!"; binmode(FILE); while (<FILE>){ $buf .=$_; } $buf = encode_base64($buf); $smtp->datasend($buf);
Is this the right direction. I did run it with the above change and recieve the same error as before
.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net:::SMTP and Attaching a xlsx
by Anonymous Monk on Nov 21, 2015 at 06:31 UTC | |
by Anonymous Monk on Nov 21, 2015 at 07:16 UTC | |
by Anonymous Monk on Nov 21, 2015 at 07:47 UTC | |
by Anonymous Monk on Nov 21, 2015 at 07:37 UTC |