aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Regarding Base64 emails Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Regarding Base64 emails" Watch "Regarding Base64 emails" New topic
Author

Regarding Base64 emails

Edward Durai
Ranch Hand

Joined: Oct 09, 2004
Posts: 223
Hello,

I have created one java mail application. i have sent one zip attachment e-mail to my client e-mail address.
but their mail server is not able retrive the mail.

but when i send this zip attachment mail to other e-mail id's (other server like yahoo, hotmail...etc), it is working perfectly.

please tell your suggestions.

when i check the attachment mail property. it looks like
Content-Transfer-Encoding: base64

Is base64 is common for zip attachment. But I did not encode. Please advise.

Thanking You.
Regards
Edward


Thank You<br />Edward
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19762
    
  20

You probably didn't know this, but every email is actually plain text, even RTF emails and HTML emails. It has different sections (e.g. the headers, the body, the attachments), and some of these sections can be encoded. This encoding is a means for putting non-plain text in the plain text email. Base64 is the most common way for attachments to be encoded.

When a client opens an email, it checks all sections, and decodes where necessary. Then it displays all sections as needed.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Edward Durai
Ranch Hand

Joined: Oct 09, 2004
Posts: 223
Thanks for your reply.

Actually In my java mail application, at run time, I have created zip files and send to particular e-mail id.

It's working fine. But in particular e-mail id's not working.

But without using Javamail API (manually), that is manually i have sent one zip attachement to the same e-mail id. It's working perfectly.

But In JavaMail API, zip attachment is not going to that particular id.

I have asked to that mail server programmers, they told me, they got some errors, when receiving my e-mails.

But other e-mails are working. When I check the other e-mails, the mail properties looks like


Content-Type: application/zip; name=onshore_342_onshore_934_25.zip
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=onshore_342_onshore_934_25.zip


So please adivise.

Thanking You.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42636
    
  65
they got some errors

What errors are those, exactly?


Ping & DNS - my free Android networking tools app
Edward Durai
Ranch Hand

Joined: Oct 09, 2004
Posts: 223
Hi,

Actually their mail have attached below

"The cause of the problems you are encountering while sending the zip.files attached to the emails have been located by our Amos Technical Experts.

The emails are not being blocked, but during storage of the attachment within our Amos database the system is generating errors:



I 20080422 133121 3536 SMTP incoming from 212.165.122.17
T 20080422 133121 3536 EHLO relay1.station12.com
T 20080422 133121 3536 MAIL FROM:<onshore@tcslgroup.net>
T 20080422 133121 3536 RCPT TO:<vrm@amosconnect.com>
T 20080422 133134 3536 DATA
E 20080422 133134 3536 Unable to save message in database
T 20080422 133134 3536 QUIT



This is a bug within our system which needs to be solved by our Amos Development Department".

Thanking You.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42636
    
  65
Sounds like the receiving side is aware of the problem, and -hopefully- working to fix it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding Base64 emails