Open Outlook msg (new) using vb.net in web development

I am creating a web app for our intranet site.  Something that would seem simple is causing me a headache.   I would like to create a new email (using outlook 2003/7)  via programming(vb) and populate the subject and body with information.  In essence it would be the same thing as when you click a "mailto" link, just invoked in programming.  

Here's the process which might make the question clear:

1. [user selects internal ftp site from drop down list]
                        ||
2.  [user clicks on generate email button]
                        ||
3.  [button event opens outlook email message and adds username and password to the body and appropriate subject line]
                        ||
4. [user uses contacts to add email addresses, and modify body of email]
                        ||
5. [user sends email]

I need help with step 3.

Thank you for your help!
Ron
tptaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

StanicDejanCommented:
There's a nice tutorial at:
http://www.aspheute.com/english/20000918.asp

LP,
Dejan
0
tptaAuthor Commented:
Thanks Dejan.  The tutorial(smtpmail.send) actually sends an email from programming, which I am already able to do.  I just need it to open an outlook new message form.  
0
StanicDejanCommented:
Hmm...

I'm not sure what do you mean - but if you want to execute mailto:, why don't you just simply execute mailto, e.g.:

    protected void Button1_Click(object sender, EventArgs e)
    {
      Response.Redirect("mailto:dejan@somewhere.net,somebody@somewhere.net?cc=another@xy.net&subject=Hi&body=Hello%0AWorld");
    }


This would open Outlook (if it is the default mail client on the target PC) and prefill:
- recepients with dejan@somewhere.net and somebody@somewhere.net,
- copies (cc) to another@xy.net
- blind copies (bcc) aren't used in the above example, but could be if needed,
- subject to 'Hi'
- message body to:
Hello
World
(you could use more %0A for further line breaks).

Is this what you want?

LP,
Dejan

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tptaAuthor Commented:
Works great.  i was hoping for a more elegant solution than Mailto, but this is basically what I was looking for.  I had to modify the line slightly to get the message to open without actually redirecting from the existing page:
Response.Write("<script>window.open('" & mymail & "','_blank');</script>")

Thanks again for your help.
Ron
0
tptaAuthor Commented:
Thanks for the quick help!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.