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. General Programming
  3. C / C++ / MFC
  4. how to send mail without smtp server?

how to send mail without smtp server?

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminsecurityhelptutorialquestion
8 Posts 6 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.
  • B Offline
    B Offline
    bugtwo
    wrote on last edited by
    #1

    Hi,all In an application I currently involved in. when user enter some data, the app will send the data to specified mailbox. we want the app send mail without any user interactive (user may need to enter his/her email address when install the app) I had try MAPI, but it is proven that MAPI need a MAPI Client (eg. Outlook) be installed and configured before it can work. in the real world, we can't assurance that every PC can fit this requirement. I had also try some raw socket code to send mail via smtp server, but eventually i found most SMTP server need user authentication. we don't want user enter such info as it is too advance so i need help.

    P R T D 4 Replies Last reply
    0
    • B bugtwo

      Hi,all In an application I currently involved in. when user enter some data, the app will send the data to specified mailbox. we want the app send mail without any user interactive (user may need to enter his/her email address when install the app) I had try MAPI, but it is proven that MAPI need a MAPI Client (eg. Outlook) be installed and configured before it can work. in the real world, we can't assurance that every PC can fit this requirement. I had also try some raw socket code to send mail via smtp server, but eventually i found most SMTP server need user authentication. we don't want user enter such info as it is too advance so i need help.

      P Offline
      P Offline
      palbano
      wrote on last edited by
      #2

      >> send mail without smtp server? That might be like trying to breath without air X|

      "No matter where you go, there your are." - Buckaroo Banzai

      -pete

      1 Reply Last reply
      0
      • B bugtwo

        Hi,all In an application I currently involved in. when user enter some data, the app will send the data to specified mailbox. we want the app send mail without any user interactive (user may need to enter his/her email address when install the app) I had try MAPI, but it is proven that MAPI need a MAPI Client (eg. Outlook) be installed and configured before it can work. in the real world, we can't assurance that every PC can fit this requirement. I had also try some raw socket code to send mail via smtp server, but eventually i found most SMTP server need user authentication. we don't want user enter such info as it is too advance so i need help.

        R Offline
        R Offline
        Ryan Binns
        wrote on last edited by
        #3

        ispring wrote: how to send mail without smtp server? Write it on a piece of paper, place it in an envelope, address it, put a stamp on it, and put it in a mailbox ;P Humour aside... If you really can't use MAPI, then you'll need to use raw sockets and connect directly to the SMTP server which holds the recipient's account. You shouldn't need to authenticate yourself to a particular server if you are sending mail to a user whose account is on that server.

        Ryan

        "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

        B 1 Reply Last reply
        0
        • R Ryan Binns

          ispring wrote: how to send mail without smtp server? Write it on a piece of paper, place it in an envelope, address it, put a stamp on it, and put it in a mailbox ;P Humour aside... If you really can't use MAPI, then you'll need to use raw sockets and connect directly to the SMTP server which holds the recipient's account. You shouldn't need to authenticate yourself to a particular server if you are sending mail to a user whose account is on that server.

          Ryan

          "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

          B Offline
          B Offline
          bugtwo
          wrote on last edited by
          #4

          Ryan, thank you for you reply. I have tryed your approach, that is, connect to the target smtp server directly, but the server require user authentication too. so it doesn't work.:( it seem that the only way to send email without smtp server is implement a smtp server in my app. :)

          L 1 Reply Last reply
          0
          • B bugtwo

            Ryan, thank you for you reply. I have tryed your approach, that is, connect to the target smtp server directly, but the server require user authentication too. so it doesn't work.:( it seem that the only way to send email without smtp server is implement a smtp server in my app. :)

            L Offline
            L Offline
            Liger_Zero_X
            wrote on last edited by
            #5

            then, send the authentication to the server (requires Username and Password)... be sure to Encode them...

            B 1 Reply Last reply
            0
            • B bugtwo

              Hi,all In an application I currently involved in. when user enter some data, the app will send the data to specified mailbox. we want the app send mail without any user interactive (user may need to enter his/her email address when install the app) I had try MAPI, but it is proven that MAPI need a MAPI Client (eg. Outlook) be installed and configured before it can work. in the real world, we can't assurance that every PC can fit this requirement. I had also try some raw socket code to send mail via smtp server, but eventually i found most SMTP server need user authentication. we don't want user enter such info as it is too advance so i need help.

              T Offline
              T Offline
              Ted Ferenc
              wrote on last edited by
              #6

              try these RFCs ;) http://www.faqs.org/rfcs/rfc1149.html http://www.faqs.org/rfcs/rfc2549.html


              "Laughing at our mistakes can lengthen our own life. Laughing at someone else's can shorten it." - Cullen Hightower

              1 Reply Last reply
              0
              • B bugtwo

                Hi,all In an application I currently involved in. when user enter some data, the app will send the data to specified mailbox. we want the app send mail without any user interactive (user may need to enter his/her email address when install the app) I had try MAPI, but it is proven that MAPI need a MAPI Client (eg. Outlook) be installed and configured before it can work. in the real world, we can't assurance that every PC can fit this requirement. I had also try some raw socket code to send mail via smtp server, but eventually i found most SMTP server need user authentication. we don't want user enter such info as it is too advance so i need help.

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                Unless the client is able to successfully send e-mail, there's no way for you to do it programmatically. Something has to be in place that works.


                "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

                1 Reply Last reply
                0
                • L Liger_Zero_X

                  then, send the authentication to the server (requires Username and Password)... be sure to Encode them...

                  B Offline
                  B Offline
                  bugtwo
                  wrote on last edited by
                  #8

                  ok, then, how to send the authentication to the server I cannot find such a command in the SMTP command set. SMTP Commands: HELO (Hello) MAIL (Mail) RCPT (Recipient) DATA (Data) SEND (Send) SOML (Send or mail) SAML (Send and mail) RSET (Reset) VRFY (Verify) EXPN (Expand) HELP (Help) NOOP (Noop) QUIT (Quit) TURN (Turn) I know there must be a way there, but I can't find it :confused:

                  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