What are you using for your mail client?
What font is that client using?
if it's not a mono-spaced font then columns won't look straight.
Try saving the mail to a text file and then cat the file to the screen - see 
what it looks like then.

Gary
On Friday 15 June 2001 12:19 pm, [EMAIL PROTECTED] wrote:
> Hi,
> I wan't a formated output in a Mail sent by Perl.
> Exa. of my Perlscript.
> ----- snipppp ----
> #!/usr/bin/perl -w
> #
> $mailprog="/usr/sbin/sendmail";
> $to="peter.schopen\@rzf.fin-nrw.de\@a011-24";
> $from="scp";
> $sub="format-Test";
> $mess="Das ist ein test......";
> open(MAIL,"| $mailprog -t ");
> printf MAIL "To: %s\n", $to;
> printf MAIL "From: %s\n", $from;
> printf MAIL "Subject: %s\n\n", $sub;
> printf MAIL "%s\n", $mess;
> printf MAIL "%-40s  %7.2f\n","Formatirte Ausgabe:", 22.34;
> printf MAIL "%-40s  %7.2f\n","Form Ausgabe:", 2222.33;
> printf MAIL "%-40s  %7.2f\n","Formatirte:", 1.333;
> printf MAIL "%-40s  %7.2f\n","xx:", 666.99;
> print MAIL "\n---- gesendet von xyz ????\n";
> close(MAIL);
> --- snappppp -------
> But my Mail looks not formated.
> OUTPUT is:
>
> Das ist ein test......
> Formatirte Ausgabe:                         22.34
> Form Ausgabe:                             2222.33
> Formatirte:                                  1.33
> xx:                                        666.99
>
> ---- gesendet von xyz ????
>
> Who can give a Tip ???
> Thanks   Peter
>
> Peter Schopen
> RZF NRW - Sachgebiet 215
> Postfach 30 08 64, 40408 Düsseldorf
> Tel. (02 11) 45 72- 859; Fax (02 11) 47833-065
> E-Mail-Adresse: [EMAIL PROTECTED]

Reply via email to