473,425 Members | 1,806 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,425 software developers and data experts.

SMPT tag to send encrypted file

180 100+
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.

Expand|Select|Wrap|Line Numbers
  1. MIME-Version: 1.0
  2. From: abc@gmail.com
  3. To: xyz@yahoo.com
  4. Subject: Hi
  5. Content-Type: multipart/mixed; boundary=unique-boundary-1
  6.  
  7. --unique-boundary-1
  8. Content-Type: text/plain
  9. Content-Transfer-Encoding: base64
  10. Content-Disposition: attachment;filename=fileName
  11.  
  12. 8  4  0   6  6  0  0  0 0     5.943         1 0 1
  13. 8  0  0   6  23 0  0  0 0     6.289       0.4 0 1
  14. 8  0  1   15 0  0  0  0 0     4.557         1 0 1
  15. 8  0  1   16 0  0  0  0 0      4.21         0 0 1
  16. 8  0  1   17 0  0  0  0 0     1.039         0 0 1
  17. 6  4  0   1  1  2  18 0 0     5.943       0.6 0 1
  18. 6  2  1   8  8  16 0  0 0     3.864       0.6 0 1
  19. 6  2  1   7  7  9  0  0 0     3.518       0.4 0 1
  20. 6  2  1   8  10 10 0  0 0     3.171       0.6 0 1
  21. 6  2  1   9  9  11 0  0 0     2.825       0.4 0 1
  22. 6  2  1   10 12 12 0  0 0     2.478       0.6 0 1
  23. 6  2  1   11 11 13 0  0 0     2.079       0.6 0 1
  24. 6  2  1   12 14 14 0  0 0     1.732       0.4 0 1
  25. 6  2  1   13 13 17 0  0 0     1.386       0.6 0 1
  26. 6  0  1   3  16 20 0  0 0     4.557       0.6 2 1
  27. 6  0  1   4  7  15 0  0 0      4.21       0.4 1 1
  28. 6  0  1   5  14 21 0  0 0     1.039       0.4 1 1
  29. 6  0  2   6  19 0  0  0 0     5.596       0.4 0 1
  30. 6  0  2   18 20 0  0  0 0      5.25       0.6 0 1
  31. 6  0  2   15 19 0  0  0 0     4.903       0.4 0 1
  32. 6  0  2   17 22 0  0  0 0    0.6928       0.6 0 1
  33. 6  0  2   21 24 0  0  0 0    0.3464       0.4 0 1
  34. 6  0  3   2  0  0  0  0 0     6.635       0.6 0 1
  35. 6  0  3   22 0  0  0  0 0         0       0.6 0 1
  36.  
  37. --unique-boundary-1--
  38. .
Is there anything I'm doing wrong.. Please help me to solve the problem.

Thanks
Jul 10 '07 #1
1 1580
weaknessforcats
9,208 Expert Mod 8TB
Probably, you need to send the encrypted file as binary rather than text.
Jul 10 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Philipp Brune | last post by:
Hi all, the following problem occured to me and I hope somebody can help me : I need to implement an encrypted File download with a PHP script on the server side and a c# client application....
2
by: Jill Elaine | last post by:
I am building an Access 2002 frontend with linked tables to an encrypted Paradox 7 database. When I first create these linked tables, I'm asked for the password to the encrypted Paradox database,...
2
by: Heinz Z. | last post by:
Hello, I need a function to send a mail from a winform application. I don't belive, that I can use smtp, because I neither know the mail address of the sender nor the smtp server (or can it be...
4
by: Debbie Carter | last post by:
Would anyone know how to read the file attributes of a file on the hard drive to check if the file is encrypted or not? I have searched Visual Studio Help and MSDN and the samples I have found do...
7
by: julian_m | last post by:
Is there any way to set up the php.ini file, in order to be able to use gmail to send mails from a local machine? I've tryied with SMTP = smtp.gmail.com smtp_port = 25 but I can't figure...
8
by: robert | last post by:
Hello, I want to put (incrementally) changed/new files from a big file tree "directly,compressed and password-only-encrypted" to a remote backup server incrementally via FTP,SFTP or DAV.... At...
5
by: Michael Sperlle | last post by:
Is it possible? Bestcrypt can supposedly be set up on linux, but it seems to need changes to the kernel before it can be installed, and I have no intention of going through whatever hell that would...
1
by: john_aspinall | last post by:
Hi, I want to send an email form on an ASP page and make it secure/ encrypted when sending it to the recipient. Does anyone know how I might easily achieve this - or should I be going through...
2
by: =?Utf-8?B?QWJlUg==?= | last post by:
Okay I have a really weird issue. I'm not sure where to post this, but since it's a .NET app I'll try posting it here first. I've written a standard windows forms app to generate emails to a...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.