Jacko123
July 10th, 2007, 02:01 AM
Hi guys,
I have a plain text file. I want to encrypt and send this file via mail. I use SMTP to send the file over network. I'm able to send the file in plain text but if I encode and send it, I get some stupid data. I make use of base64 to encode the file. Here is the tags (with data) that I send to mail server.
MIME-Version: 1.0
From: abc@gmail.com
To: xyz@yahoo.com
Subject: Hi
Content-Type: multipart/mixed; boundary=unique-boundary-1
--unique-boundary-1
Content-Type: text/plain
Content-Transfer-Encoding: base64
Content-Disposition: attachment;filename=fileName
8 4 0 6 6 0 0 0 0 5.943 1 0 1
8 0 0 6 23 0 0 0 0 6.289 0.4 0 1
8 0 1 15 0 0 0 0 0 4.557 1 0 1
8 0 1 16 0 0 0 0 0 4.21 0 0 1
8 0 1 17 0 0 0 0 0 1.039 0 0 1
6 4 0 1 1 2 18 0 0 5.943 0.6 0 1
6 2 1 8 8 16 0 0 0 3.864 0.6 0 1
6 2 1 7 7 9 0 0 0 3.518 0.4 0 1
6 2 1 8 10 10 0 0 0 3.171 0.6 0 1
6 2 1 9 9 11 0 0 0 2.825 0.4 0 1
6 2 1 10 12 12 0 0 0 2.478 0.6 0 1
6 2 1 11 11 13 0 0 0 2.079 0.6 0 1
6 2 1 12 14 14 0 0 0 1.732 0.4 0 1
6 2 1 13 13 17 0 0 0 1.386 0.6 0 1
6 0 1 3 16 20 0 0 0 4.557 0.6 2 1
6 0 1 4 7 15 0 0 0 4.21 0.4 1 1
6 0 1 5 14 21 0 0 0 1.039 0.4 1 1
6 0 2 6 19 0 0 0 0 5.596 0.4 0 1
6 0 2 18 20 0 0 0 0 5.25 0.6 0 1
6 0 2 15 19 0 0 0 0 4.903 0.4 0 1
6 0 2 17 22 0 0 0 0 0.6928 0.6 0 1
6 0 2 21 24 0 0 0 0 0.3464 0.4 0 1
6 0 3 2 0 0 0 0 0 6.635 0.6 0 1
6 0 3 22 0 0 0 0 0 0 0.6 0 1
--unique-boundary-1--
.
Is there anything I'm doing wrong.. Please help me to solve the problem.
Thanks
I have a plain text file. I want to encrypt and send this file via mail. I use SMTP to send the file over network. I'm able to send the file in plain text but if I encode and send it, I get some stupid data. I make use of base64 to encode the file. Here is the tags (with data) that I send to mail server.
MIME-Version: 1.0
From: abc@gmail.com
To: xyz@yahoo.com
Subject: Hi
Content-Type: multipart/mixed; boundary=unique-boundary-1
--unique-boundary-1
Content-Type: text/plain
Content-Transfer-Encoding: base64
Content-Disposition: attachment;filename=fileName
8 4 0 6 6 0 0 0 0 5.943 1 0 1
8 0 0 6 23 0 0 0 0 6.289 0.4 0 1
8 0 1 15 0 0 0 0 0 4.557 1 0 1
8 0 1 16 0 0 0 0 0 4.21 0 0 1
8 0 1 17 0 0 0 0 0 1.039 0 0 1
6 4 0 1 1 2 18 0 0 5.943 0.6 0 1
6 2 1 8 8 16 0 0 0 3.864 0.6 0 1
6 2 1 7 7 9 0 0 0 3.518 0.4 0 1
6 2 1 8 10 10 0 0 0 3.171 0.6 0 1
6 2 1 9 9 11 0 0 0 2.825 0.4 0 1
6 2 1 10 12 12 0 0 0 2.478 0.6 0 1
6 2 1 11 11 13 0 0 0 2.079 0.6 0 1
6 2 1 12 14 14 0 0 0 1.732 0.4 0 1
6 2 1 13 13 17 0 0 0 1.386 0.6 0 1
6 0 1 3 16 20 0 0 0 4.557 0.6 2 1
6 0 1 4 7 15 0 0 0 4.21 0.4 1 1
6 0 1 5 14 21 0 0 0 1.039 0.4 1 1
6 0 2 6 19 0 0 0 0 5.596 0.4 0 1
6 0 2 18 20 0 0 0 0 5.25 0.6 0 1
6 0 2 15 19 0 0 0 0 4.903 0.4 0 1
6 0 2 17 22 0 0 0 0 0.6928 0.6 0 1
6 0 2 21 24 0 0 0 0 0.3464 0.4 0 1
6 0 3 2 0 0 0 0 0 6.635 0.6 0 1
6 0 3 22 0 0 0 0 0 0 0.6 0 1
--unique-boundary-1--
.
Is there anything I'm doing wrong.. Please help me to solve the problem.
Thanks