using mailto

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 
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 said:
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.
 
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 said:
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 said:
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.
 
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 said:
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
 
Back
Top