473,394 Members | 1,700 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,394 software developers and data experts.

Mailto: from client and attachments

Is it possible using mailto: to create an email with everything except an
attachment
and then when a user clicks on send intercept that form and recreate the
email on the server and add a file to it?

Thanks
Jul 19 '05 #1
3 7947
> Is it possible using mailto: to create an email with everything except an
attachment
and then when a user clicks on send intercept that form and recreate the
email on the server and add a file to it?


No, you are confusing mailto: (which runs exclusively on the client) with
server-side mailing functionality (which runs exclusively on the server).

Instead, have a form that is submitted to the server, and the server-side
deals with sending the mail *and* attaching the file to it.
Jul 19 '05 #2
I understand the mechanics behind mailto:.
What I was thinking is using mailto: to create a complete mail on a client
without an attachment and then when a user sends email reroute it to a
server for a file attachment and forwarding.

"Aaron Bertrand [MVP]" <aa***@TRASHaspfaq.com> wrote in message
news:#E**************@tk2msftngp13.phx.gbl...
Is it possible using mailto: to create an email with everything except an attachment
and then when a user clicks on send intercept that form and recreate the
email on the server and add a file to it?


No, you are confusing mailto: (which runs exclusively on the client) with
server-side mailing functionality (which runs exclusively on the server).

Instead, have a form that is submitted to the server, and the server-side
deals with sending the mail *and* attaching the file to it.

Jul 19 '05 #3
> What I was thinking is using mailto: to create a complete mail on a client
without an attachment and then when a user sends email reroute it to a
server for a file attachment and forwarding.


Mail is sent to an SMTP server, not an application server. ASP has no way
to know that mail is being sent anywhere. You can only "intercept" mail
before it is sent along this way... e.g. if you generate the e-mail from the
server side.

mailto: is a very unreliable method, by the way. Some people don't have a
default mail reader defined, some people have default mail readers that
don't support mailto:, a few will modify the form contents and change the
destination and several other attributes, and the rest can choose to just
close the mail window and nothing gets sent at all
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Tom | last post by:
Anybody know how to modify this script to return to the HTML page from which it was launched? <script language="javascript"> document.location.href="MailTo:"; </script>
12
by: ElvisIsDead | last post by:
Have a script that takes a form and emails it automatically. Here is the part: <form onSubmit="return editData();" name="estm" enctype="text/plain" method="post"...
12
by: catyionic | last post by:
hi, Due to trying many different form options, with none of them working, I opted for this to receive info back from this site: http:\\www.elderslastwish.com <form name="feedback_form"...
10
by: Adam Smith | last post by:
How can I set up a mailto with a cc or bcc as well as a subject designation. The system works for two but not three, is this a hardwired limit or have I missed something ==> <a...
1
by: Levi Wilson | last post by:
I have a web service that adds a DIME attachment: public void GetFile(string filename) { SoapContext sc = HttpSoapContext.ResponseContext; DimeAttachment dimeFile = new...
4
by: Harsh Vardhan Singh | last post by:
I am not able to attach files using mailto: command I am using mailto: something@something.com?Subject=test&attach=c:\test.txt i have tried all variations of path c:\\test.txt 'c:\test.txt'...
2
by: Landley | last post by:
Hello, Is there a way of creating an email, attaching a file and sending using the client's default mail client? I am looking for a none email client specific solution that does not involve...
2
by: gauravkhanna | last post by:
Hi All I need some help for the below problem: Scenario We need to send large binary files (audio file of about 10 MB or so) from the client machine (.Net Windows based application, located...
7
by: mukeshrasm | last post by:
Hi I am no able to send mail and it is giving this error Warning: mail(): SMTP server response: 530 5.7.3 Client was not authenticated in c:\inetpub\wwwroot\eshop\includes\classes\email.php on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.