Sendmail Commadline Tool

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • GoOgLe
    Forum Member
    • Mar 2007
    • 452

    Sendmail Commadline Tool

    I need help with that sendmail commandline tool... Can someone show how to use it please?

    Code:
    <Sendmail>
        <Server host="www.myhost.com" port="25" username="" password=""/>   
        <Message>
        	<Sender email="[email protected]" name="someone"/>
        	<Recipient email="[email protected]" name="person"/>
            <BCCRecipient email="[email protected]" name="person"/>
            <!-- using external body content -->
          	<Body filename="test.txt"/>
        </Message>    
        <Attachment filename="test1.txt" title="test document1"/>
    </Sendmail>
    Attached Files
  • nitrobry
    Forum Member
    • Mar 2007
    • 72

    #2
    Is this what you want to do

    Example below
    Attached Files

    Comment

    • GoOgLe
      Forum Member
      • Mar 2007
      • 452

      #3
      no nitrobry not at all... i attached a commandline tool for that...

      Comment

      • g be
        Forum Member
        • Mar 2009
        • 2

        #4
        I downloaded you small tool and create an example... Source code is here:

        sendto = Dialog.Input("Question", "Send To (ex: [email protected]):", "", MB_ICONQUESTION);

        XML.Load("Components\\SendMail\\sendmail.xml");
        XML.SetAttribute("Sendmail/Message/Recipient", "email", sendto);
        XML.SetAttribute("Sendmail/Message/Recipient", "name", sendto);
        XML.SetAttribute("Sendmail/Attachment", "filename", NodeProperties.Data);
        XML.SetAttribute("Sendmail/Attachment", "title", FilePath);

        -- To debug
        --XML_Attrib = XML.GetAttribute("Sendmail/Message/Recipient", "email");
        --result = Dialog.Message("Notice", XML_Attrib, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
        --XML_Attrib = XML.GetAttribute("Sendmail/Message/Recipient", "name");
        --result = Dialog.Message("Notice", XML_Attrib, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
        --XML_Attrib = XML.GetAttribute("Sendmail/Attachment", "filename");
        --result = Dialog.Message("Notice", XML_Attrib, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
        --XML_Attrib = XML.GetAttribute("Sendmail/Attachment", "title");
        --result = Dialog.Message("Notice", XML_Attrib, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);


        XML.Save("Components\\SendMail\\sendmail.xml");

        -- I create a BAT fil with the line: sendmail.exe sendmail.xml
        Shell.Execute("Components\\SendMail\\SendMail.bat" , "open", "", "Components\\SendMail\\", SW_MINIMIZE);


        It's not perfect but just an example....

        Comment

        • GoOgLe
          Forum Member
          • Mar 2007
          • 452

          #5
          can u post the example please ?

          Comment

          • RizlaUK
            Indigo Rose Customer
            • May 2006
            • 5552

            #6
            ^^ that is the example
            Embrace change in your life, you never know, it could all work out for the best

            Comment

            • Dermot
              Indigo Rose Customer
              • Apr 2004
              • 1791

              #7
              Originally posted by RizlaUK View Post
              ^^ that is the example
              Lol. Yeah but you have to copy and paste it and that's just too much work. You can't expect people to do that.
              Dermot

              I am so out of here :yes

              Comment

              • g be
                Forum Member
                • Mar 2009
                • 2

                #8
                Don't Worry I quickly created a small project....

                An explorer with the possibility to send a file by mail.. For that, you have to select a file and click on the button... I think there is lot of bug because I made it in front a the TV. sorry.

                There is no comment in the source code... I hope it's enough to understand.
                Attached Files

                Comment

                • RizlaUK
                  Indigo Rose Customer
                  • May 2006
                  • 5552

                  #9
                  Originally posted by Dermot View Post
                  Lol. Yeah but you have to copy and paste it and that's just too much work. You can't expect people to do that.
                  lol, maybe i should write a plugin that makes applications
                  Embrace change in your life, you never know, it could all work out for the best

                  Comment

                  • Dermot
                    Indigo Rose Customer
                    • Apr 2004
                    • 1791

                    #10
                    Originally posted by RizlaUK View Post
                    lol, maybe i should write a plugin that makes applications
                    While you are at it, can you create a plugin for creating plugins?
                    Dermot

                    I am so out of here :yes

                    Comment

                    Working...
                    X