Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mail content is displaying as attachment  RSS feed

 
sammaiah kyatham
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When we are sending a mail through JSP coding, the receipt of the mail content is received/seen as attachment.

We observe that when there is a hyperlink in the mail content then only the mail is seen as attachment.
Please advise how to write code not to send mail as attachment.

Thnx,
sam
 
sammaiah kyatham
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My JSP program is as follows,
problem is coming when I use heperlinks in content


[ UD: added code tags for readability ]

[ January 18, 2006: Message edited by: Ulf Dittmer ]
[ January 19, 2006: Message edited by: sammaiah kyatham ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Other Java APIs forum.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The message appears as an attachment because the code creates it that way. Two body parts are added, the first of which is empty, while the second contains the actual message. What is the purpose of the first, empty, part anyway?
 
sammaiah kyatham
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf Dittmer,
Empty code is removed, but still same problem.
Can you please help me?

Thnx,
sam
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case, why don't you edit your earlier post, so that we can see the code you have now, and we'll take it from there.
 
sammaiah kyatham
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
any solution for it?

Thnx,
sam
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing jumps out at me. YOu could compare your code with simple examples to see if you're doing anything differently.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!