outlook send email help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • jackdaniels
    No longer a forum member
    • Mar 2007
    • 533

    outlook send email help

    i tried to do it with input but i had problem with getting data from input objects... can some one help please ???

    button on click:
    Code:
    sender = Input.GetText("Input1");
    cc = Input.GetText("Input2");
    bcc = Input.GetText("Input3");
    subject = Input.GetText("Input4");
    body = Input.GetText("Input5");
    
    [B]File.OpenEmail("sender?CC=cc&BCC=bcc&Subject=subject&Body=body", SW_SHOWNORMAL);B]
    Last edited by jackdaniels; 03-24-2008, 09:38 AM.
  • yosik
    Indigo Rose Customer
    • Jun 2002
    • 1856

    #2
    Your problem is that you have variables but you are using them as strings (putting them inside quotes).
    Instead of:

    File.OpenEmail("sender?CC=cc&BCC=bcc&Subject=subje ct&Body=body", SW_SHOWNORMAL);

    You should write:

    File.OpenEmail(sender.."?"..cc.."&"..bcc.."&"..sub ject.."&"..body, SW_SHOWNORMAL);

    Yossi

    Comment

    • jackdaniels
      No longer a forum member
      • Mar 2007
      • 533

      #3
      only the reciever works, it doesnt paste the others(cc,bcc,subject,body)!!!

      Code:
      reciever = Input.GetText("Input1");
      cc = Input.GetText("Input2");
      bcc = Input.GetText("Input3");
      subject = Input.GetText("Input4");
      body = Input.GetText("Input5");
      
      File.OpenEmail(reciever.."?"..cc.."&"..bcc.."&"..subject.."&"..body, SW_SHOWNORMAL);

      Comment

      • yosik
        Indigo Rose Customer
        • Jun 2002
        • 1856

        #4
        Sorry. The code should be:

        File.OpenEmail(sender.."?CC="..cc.."&BCC="..bcc.." &Subject="..subject.."&Body="..body, SW_SHOWNORMAL);

        All in one line without space.

        Yossi

        Comment

        • jackdaniels
          No longer a forum member
          • Mar 2007
          • 533

          #5
          thanks alot yosik perfect work

          Comment

          Working...
          X