473,473 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

using mailto

Hi all,
I want to be able to send a .pdf to a default email client. Can I use
the mailto expression to do this? Im not keen on digging around the registry to 'discover' the default email client and using a process.start() -- I guess thats my last resort. Just wondering if it is possible to encode a .pdf file and add it to the body string.

--
~~~~~~~~~~~~~~~~~~
Just do something.
~~~~~~~~~~~~~~~~~~
Jul 21 '05 #1
4 2086
Hi,

A default mailclient has no posibilities for attachment, however I thought
that there was something special for pdf with adobe, maybe can you search
Google for "attachment pdf", I saw some solutions doing that, however do not
know if they work.

Cor
Jul 21 '05 #2
Like Cor said, you won't be able to do it with a simple mailto: handler.

Take a look at the System.Web.Mail.MailAttachment class.

--
Klaus H. Probst, MVP
http://www.vbbox.com/
"holysnappingducks" <ho***************@holy.snapping.com> wrote in message
news:84**********************************@microsof t.com...
Hi all,
I want to be able to send a .pdf to a default email client. Can I use
the mailto expression to do this? Im not keen on digging around the registry to 'discover' the default email client and using a
rocess.start() -- I guess thats my last resort. Just wondering if it is
possible to encode a .pdf file and add it to the body string.
--
~~~~~~~~~~~~~~~~~~
Just do something.
~~~~~~~~~~~~~~~~~~

Jul 21 '05 #3
thanks for the input ppl,
the MailAttachment class is the way to go (constructing a MailMessage etc, etc.) but my dilemma then shifts to how to discover/execute the default email client. In fact I have tried this b4 and came to the conclusion that the real problem lies in executing the default client correctly once discovered. I ended up with a lengthy case statement with all the different possible mail clients out there (eudora, outlook, outlook express, etc.) and proceeded to figure out how each accepts command line arguments. I guess I was hoping there was an easier/more correct way of achieving this end. As for the
article I found at: http://www.adobe.com/products/acrobat/access_email.html -- I dont think this will be an efficient enough process as the amount of emails will potentially be quite large (corporate reporting system converting crystal reports into a .pdf to reduce their size). Anyway Im contemplating insisting all our clients use a particular mail client for use with our software.

Thanks again Cor and Klaus :D
--
~~~~~~~~~~~~~~~~~~
Just do it again.
~~~~~~~~~~~~~~~~~~
"Klaus H. Probst" wrote:
Like Cor said, you won't be able to do it with a simple mailto: handler.

Take a look at the System.Web.Mail.MailAttachment class.

--
Klaus H. Probst, MVP
http://www.vbbox.com/
"holysnappingducks" <ho***************@holy.snapping.com> wrote in message
news:84**********************************@microsof t.com...
Hi all,
I want to be able to send a .pdf to a default email client. Can I use
the mailto expression to do this? Im not keen on digging around the

registry to 'discover' the default email client and using a
rocess.start() -- I guess thats my last resort. Just wondering if it is
possible to encode a .pdf file and add it to the body string.

--
~~~~~~~~~~~~~~~~~~
Just do something.
~~~~~~~~~~~~~~~~~~


Jul 21 '05 #4
Well, .NET will let you send messages programmatically, but if you want to
use the user's default mail client that probably won't help you. You'll need
to figure out how to automate it.

I'm sure it's possible with Outlook and most MAPI-compliant clients; dunno
about Eudora.
--
Klaus H. Probst, MVP
http://www.vbbox.com/
"holysnappingducks" <ho***************@holy.snapping.com> wrote in message
news:9A**********************************@microsof t.com...
thanks for the input ppl,
the MailAttachment class is the way to go (constructing a MailMessage etc, etc.) but my dilemma then shifts to how to discover/execute the default
email client. In fact I have tried this b4 and came to the conclusion that
the real problem lies in executing the default client correctly once
discovered. I ended up with a lengthy case statement with all the different
possible mail clients out there (eudora, outlook, outlook express, etc.) and
proceeded to figure out how each accepts command line arguments. I guess I
was hoping there was an easier/more correct way of achieving this end. As
for the article I found at: http://www.adobe.com/products/acrobat/access_email.html -- I dont think
this will be an efficient enough process as the amount of emails will
potentially be quite large (corporate reporting system converting crystal
reports into a .pdf to reduce their size). Anyway Im contemplating insisting
all our clients use a particular mail client for use with our software.
Thanks again Cor and Klaus :D
--
~~~~~~~~~~~~~~~~~~
Just do it again.
~~~~~~~~~~~~~~~~~~
"Klaus H. Probst" wrote:
Like Cor said, you won't be able to do it with a simple mailto: handler.

Take a look at the System.Web.Mail.MailAttachment class.

--
Klaus H. Probst, MVP
http://www.vbbox.com/
"holysnappingducks" <ho***************@holy.snapping.com> wrote in message news:84**********************************@microsof t.com...
Hi all,
I want to be able to send a .pdf to a default email client. Can I use
the mailto expression to do this? Im not keen on digging around the

registry to 'discover' the default email client and using a
rocess.start() -- I guess thats my last resort. Just wondering if it is
possible to encode a .pdf file and add it to the body string.

--
~~~~~~~~~~~~~~~~~~
Just do something.
~~~~~~~~~~~~~~~~~~


Jul 21 '05 #5

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

Similar topics

2
by: Bill Petrol | last post by:
I'm trying to send a link with a querystring as the body of an email message. My HTML syntax looks something like this: <a href="mailto:xxx@yyy.com?Subject=<? print $subject ?>&Body=<? print...
2
by: Joseph Ellis | last post by:
Hello all, I have as part of my family website a list of links to family members' e-mail addresses. So far I've just provided links in the form of href="mailto:somebody@domain.com". But now...
4
by: tp | last post by:
HI... I have created simple .asp page and i would like to send my page as email using my outlook . is it possible to send form body as new email outlook body using mailto command or any other...
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...
15
by: tshad | last post by:
I am trying to put an persons email address in a response I am sending another person. I can get it to work by doing the following: message.Body = resumeTop & vbCrLf & vbCrLf & "For Applicant:...
7
by: Paul Bromley | last post by:
I am using mailto to open the default e-mail program on the users machine using the following function code snippet that I found on th web.:- Public Function OpenEmail(ByVal EmailAddress As...
4
by: Együd Csaba | last post by:
Hi All, I'd like to "compress" the following two filter expressions into one - assuming that it makes sense regarding query execution performance. .... where (adate LIKE "2004.01.10 __:30" or...
5
toxicpaint
by: toxicpaint | last post by:
Hi there. I can't seem to work out what I'm doing wrong here and I was wondering if you could help. I have a form to submit a question, but as the questions vary in nature, I want them to go to...
0
by: northof40 | last post by:
Hi - I'm using .net2/ASP.Net/C# and am trying to get a grid view column to display a 'mailto' which uses one value for the href and one value for the visible part of the anchor, like this ... <a...
2
by: Marc | last post by:
I have a button that when clicked, makes a database call to retrieve some data. That data is used to generate a series of e-mail addresses that I then want pre-populated into an Outlook e-mail. I...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.