Results 1 to 5 of 5

Thread: copy fields to a new outlook e-mail

  1. #1

    Thread Starter
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502

    Question copy fields to a new outlook e-mail

    Hi,

    I am making a website with the following textfields:

    -emailaddresses
    -subject
    -body

    When I click a button the fields should be copied to a new Outlook e-mail.

    This is because it's for a firm that does everything with outlook and they request perfect integration. (So, no workarounds)

    Anybody any experience or ideas on how to do this ?

    Thanks in advance.
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

  2. #2

    Thread Starter
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502

    Re: copy fields to a new outlook e-mail

    I would just like to add that it should also be able to do attachements.

    So I guess that redirecting to a mailto:-hyperlink doesn't do the trick here.

    Anybody any suggestions ?
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

  3. #3
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    Re: copy fields to a new outlook e-mail

    To do anything complicated on the client-side with applications you'd need an ActiveX control I'd imagine!
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  4. #4

    Thread Starter
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502

    Re: copy fields to a new outlook e-mail

    I wrote a small piece of code. It looks like this.

    Code:
    			Outlook.ApplicationClass app = new ApplicationClass();
    			Outlook.NameSpace nmsp = app.GetNamespace("MAPI");
    			Object mail = app.CreateItem(OlItemType.olMailItem);
    			Outlook.MailItemClass mymail = (Outlook.MailItemClass)mail;
    			mymail.Body = "blablabla";
    			mymail.To = "[email protected]";
    			mymail.CC = "[email protected]";
    			mymail.Display(app);
    But I have no idea how to make it work on the client side. Making an activeX-controll in VB6 wouldn't work probably since I can't access the OutlookReference I think.

    And ActiveX is dead under .NET isn't it or is it possible to make ActiveX controlls in Visual Studio.NET ?

    Or is there a .NET alternative?
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

  5. #5

    Thread Starter
    Hyperactive Member BramVandenbon's Avatar
    Join Date
    Jan 2002
    Location
    Belgium
    Posts
    502

    Re: copy fields to a new outlook e-mail

    maybe better to continue the discussion here:
    http://www.vbforums.com/showthread.php?t=332154
    ____________________________________________

    Please rate my messages. Thank you!
    ____________________________________________
    Bram Vandenbon
    http://www.bramvandenbon.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width