Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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

Email attachment without first uploading the file to the server?  RSS feed

 
Richard Vagner
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am writing a jsp program in which user can send email attachment. Since users are not allowed to upload file from their local machine to the server. Is there a way to write a jsp program which can send out the email attachment WITHOUT first uploading the file to the sever?
I have completed the program with taglibs. But that requires uploading the file first.
It is urgent , please help.
Roland
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hidden Dragon,
Javaranch has a naming policy which is strictly enforced. Please read this policy and change your display name if you wish to continue posting here. Thanks.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't see any way to acomplish what you are trying to do. All of the mail sending functionality exists on the server, the attachment must be on the server to be a part of that functionality. The server can't decide to send files from the client, otherwise it could be used to steal data from computers.
Dave
 
Richard Vagner
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think there must be a way to do that. I am thinking is to send a file without touching the
filesystem...basically to store the file in a memory instead of a file system. Anyone knows how this can be accomplished?
 
Naveen Sydney
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what ur asking for is really very complicated. as a matter of fact iam not even sure its possible. u want the user to attach a file on his computer and mail it, but u do not want to upload it to ur server. the only way yo do this is to use an applet or active x component that can run on the clients computer, hold the file on memory and also impliment smtp. u could also look into 3rd party components.
syd
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!