Problem with mailto: attachement

S

Silent Assassin

Hi Guys,

I am having some problem with the following command...

When I type in....

mailto:mailto:[email protected]?attachment="D:\mytext.txt"

only the address mailto:[email protected] gets typed-in, in the to: field, but the file does not get attached. I am using Outlook 2003. If i mention any other fields like subject, body etc. it too gets filled in the respective fields. Other than attachments everything else works fine. I have tried "attach=", "attachment=", "attachments=" etc. but none of them work. Can somebody please help me out? Also is the syntax different for different versions of Outlook?

Thanks in advance.
 
S

Silent Assassin

But in my case i get no error as such.... Just that it does not get attached at all.... And is it a different syntax for each version of Outlook?
 
R

Roady [MVP]

The error doesn't matter; it's not supported in the mailto protocol.
Therefore, use the /a command switch on outlook.exe. This works for any
version of Outlook.
 
V

VanguardLH

Silent said:
I am having some problem with the following command...

When I type in....

mailto:mailto:[email protected]?attachment="D:\mytext.txt"

only the address mailto:[email protected] gets typed-in, in the to: field,...
<overly long lines truncated at 76 characters (ellipsis added)>

Alas, another FUDforum user posting overly long physical lines. Maybe
FUDforum will someday fix their forum-to-Usenet gateway.
User-Agent: FUDforum

--- FUDforum: Uses a gateway to copy their forum posts to Usenet.
Please inform the administrator or moderators of your FUDforum to fix
their forum-to-Usenet gateway. Their forum posts are 1 physical line
per paragraph and assume the reader application will perform automatic
logical line wrapping. The result is their posts consist of single very
long lines that are hundreds of characters long. Newsgroups posts
should physically line-wrap at 76 characters, or less. They must also
be under 998 characters in maximum length to be RFC compliant. Ask your
FUDforum admin or moderator to be polite when gatewaying their posts to
Usenet by reformatting their posts before dumping them in newsgroups.
--- FUDforum: Borrowing Usenet to pretend they have a larger community.



So why does your URL have a doubling of the "mailto:" URL scheme prefix?
There should only be a single "mailto:" URL scheme prefix, not two of
them.

Where were you told that the mailto URL scheme includes a parameter to
specify an attachment? Read:

RFC 2368 (ftp://ftp.rfc-editor.org/in-notes/rfc2368.txt)
Microsoft's KB articles 188019 and 192341

The mailto scheme lets you specify the recipient(s) (in the To header)
along with other headers (Cc, Subject) and the body text. Unless your
mailto URL includes the headers to specify MIME usage along with
including the encoded attachment within a MIME part within the body of
the message, there is no way using mailto to include an attachment. You
also have to be careful what characters you use in the "body=<bodytext>"
parameter, like replacing some characters with their ASCII character
value (e.g., a space become %20). So, for example, even if attachments
were permitted via parameter, you would need to use the ASCII equivalent
of the double-quotes and backslash that you showed in your misconfigured
mailto URL.

Attachments are not separate of an e-mail. They are *in* the e-mail's
body. That your e-mail client shows attachments separated from the body
doesn't not change that the attachment is WITHIN the body of the e-mail.
Mime part delimiters are in the body to delineate the start and end of
the attachment that was encoded into text characters and inserted into
the body of the e-mail. You would have to do the same to include your
attachment within the body of your message and then show all of that
body in the "body=" parameter (along with converting all the punctuation
characters to their ASCII values).

This is not an Outlook issue. It is an issue of using invalid syntax
for the mailto URL.
 
S

Silent Assassin

VanguardLH wrote on Mon, 21 July 2008 08:4
Where were you told that the mailto URL scheme includes a parameter to specify an attachment


I just happened to Google and find that.... many websites have actually said its possible and it worked. But I read your point and it makes sense too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top