Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. how to insert default signature in Outlook using Javascript

how to insert default signature in Outlook using Javascript

Scheduled Pinned Locked Moved Web Development
javascriptcomhelptutorial
3 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anurag Sinha V
    wrote on last edited by
    #1

    Hi All, Have a code which sends an Outlook mail using Javascript by creating an instance of ActiveX object. I need the functionality to be such, when the user executes this code his default signature should also be added in the mail...Have tried it but to no avail..Any help would be highly appreciated... The code goes as follows for the reference:

    function mailWindowOpen(mailBody) {
    outlookApp = new ActiveXObject("Outlook.Application");
    var nameSpace = outlookApp.getNameSpace("MAPI");
    mailFolder = nameSpace.getDefaultFolder(6);
    mailItem = mailFolder.Items.add('IPM.Note.FormA');
    mailItem.Subject = "Hi There!!!";
    mailItem.HTMLBody = mailBody;

     mailItem.display(0);
    

    }

    mailBody is passed as a parameter from an aspx page, which has the Page.ClientScript.RegisterStartScript command to call this Javascript function...

    -Anurag A curious newbie

    A 1 Reply Last reply
    0
    • A Anurag Sinha V

      Hi All, Have a code which sends an Outlook mail using Javascript by creating an instance of ActiveX object. I need the functionality to be such, when the user executes this code his default signature should also be added in the mail...Have tried it but to no avail..Any help would be highly appreciated... The code goes as follows for the reference:

      function mailWindowOpen(mailBody) {
      outlookApp = new ActiveXObject("Outlook.Application");
      var nameSpace = outlookApp.getNameSpace("MAPI");
      mailFolder = nameSpace.getDefaultFolder(6);
      mailItem = mailFolder.Items.add('IPM.Note.FormA');
      mailItem.Subject = "Hi There!!!";
      mailItem.HTMLBody = mailBody;

       mailItem.display(0);
      

      }

      mailBody is passed as a parameter from an aspx page, which has the Page.ClientScript.RegisterStartScript command to call this Javascript function...

      -Anurag A curious newbie

      A Offline
      A Offline
      Anurag Sinha V
      wrote on last edited by
      #2

      Is it the correct domain or should I post this question in Javascript section??? Moderators please advise...

      A 1 Reply Last reply
      0
      • A Anurag Sinha V

        Is it the correct domain or should I post this question in Javascript section??? Moderators please advise...

        A Offline
        A Offline
        Anurag Sinha V
        wrote on last edited by
        #3

        Have moved this question to the Javascript section....

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups