Email Attachment - Please Assist

J

Josh

Hi there

I have a question that I have not been able to find a direct answer to. So
hopefully, there's someone out there who knows how to do what I'd like to
achieve.

Okay here's the gist of it:

I have 3 fields that are file-attachment fields within my form. With the
click of a button, I'd like a new email to open with these 3 attached files
and have a preset To, Message and Subject line.

The data-connections-submit-to-email function does not satisfy this request.
This is because this function also attaches the form which I do not want.

If you can figure this out, you will be a hero among heroes.

Thanks!
 
S

S.Y.M. Wong-A-Ton

It can be done, but it's not easy and you'll have to write .NET code. The
basic outline of the solution is as follows: On the click of the button,
extract the base64 encoded strings that represent the file attachments and
convert them into physical files using the Convert.FromBase64String() method.
Then you can use Outlook automation to create a mail message containing the 3
files as attachments as well as your prefilled To, Message and Subject line,
and send the message off.
 
S

S.Y.M. Wong-A-Ton

Josh, unfortunately, I'm unable to provide offline assistance, partly due to
lack of time and partly due to the nature of my job which prohibits me to.
However, there are companies like Qdabra (www.qdabra.com) that can help you
without any restrictions.

While I do not write specific solutions for individuals, I have put your
scenario on my list of articles to write for my website. In the meantime,
here are two articles that might help you get on the right track:
http://support.microsoft.com/kb/892730 (look at the section on Create a
Decoder class in Visual Studio .NET 2003)
http://msdn2.microsoft.com/en-us/library/aa289167(vs.71).aspx

And thank you for your encouraging words; that's what keeps me going.
 

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