Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

attachment is going automatically.  RSS feed

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys i've created a method to send mail... and its working fine but the problem is that it always send one attachment which i dont want to send. i just want to display html table which is in my string msg/message the code for the function is below.. can anybody help me out.. ???


[ January 30, 2007: Message edited by: Jigar Naik ]
 
Joe Ess
Bartender
Posts: 9425
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The way I understand the construction of a mime multipart message is that it contains numerous attachments, possibly of different data types, any one of which could be displayed to the user. The most common pairing is plain text and HTML versions of the same message so end users can choose which to display. It appears that you are invoking multipart.addBodyPart twice to add the same message body to the mime container. I'd think that one would be displayed to the user as the message and the other as an attachment. If you open the attachment and it looks like your original message, there's your problem.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!