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. Sending Email

Sending Email

Scheduled Pinned Locked Moved C / C++ / MFC
c++sysadminquestion
6 Posts 5 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.
  • S Offline
    S Offline
    Shamoon
    wrote on last edited by
    #1

    Hi !! I like to develop application in VC++ to send email. But i neither want to use MAPI nor I want to use any SMTP server. There are excellent articles here by PJ Naughter to send maill using MAPI and without using MAPI. But i want my application not to use any SMTP server and I want it to send mail directly. I hope that it is possible if one is connected to internet. Is there any sample application you aware of present somewhere ????

    I P M 3 Replies Last reply
    0
    • S Shamoon

      Hi !! I like to develop application in VC++ to send email. But i neither want to use MAPI nor I want to use any SMTP server. There are excellent articles here by PJ Naughter to send maill using MAPI and without using MAPI. But i want my application not to use any SMTP server and I want it to send mail directly. I hope that it is possible if one is connected to internet. Is there any sample application you aware of present somewhere ????

      I Offline
      I Offline
      ian mariano
      wrote on last edited by
      #2

      Read the RFC's 821, 822 and 2045[^] . Connect to the outside mailhost and communicate directly with it via TCP/IP using WinSock 2. This can be done using telnet, by hand, if you know what you're doing ;) BTW, you will eventually use an SMTP or other type of mail server, just closer to your email destination.


      "The greatest danger to humanity is humanity without an open mind."
      - Ian Mariano
      http://www.ian-space.com/

      1 Reply Last reply
      0
      • S Shamoon

        Hi !! I like to develop application in VC++ to send email. But i neither want to use MAPI nor I want to use any SMTP server. There are excellent articles here by PJ Naughter to send maill using MAPI and without using MAPI. But i want my application not to use any SMTP server and I want it to send mail directly. I hope that it is possible if one is connected to internet. Is there any sample application you aware of present somewhere ????

        P Offline
        P Offline
        Paul Oss
        wrote on last edited by
        #3

        I'm not following you. You can write your own class or application to send mail, but you're gonna have to connect to some kind of a mail server at some point. To my knowledge, the only way to NOT use an SMTP server (or other kind of mail server, as most internet mail is SMTP) is to be your own smtp server and become registered as such. Why do you not want to use an SMTP server? You can write a class which talks directly to your outgoing mail server (just like every other email client in the world) with not too much work communicating directly with the CSocket class. Paul Oss

        R 1 Reply Last reply
        0
        • P Paul Oss

          I'm not following you. You can write your own class or application to send mail, but you're gonna have to connect to some kind of a mail server at some point. To my knowledge, the only way to NOT use an SMTP server (or other kind of mail server, as most internet mail is SMTP) is to be your own smtp server and become registered as such. Why do you not want to use an SMTP server? You can write a class which talks directly to your outgoing mail server (just like every other email client in the world) with not too much work communicating directly with the CSocket class. Paul Oss

          R Offline
          R Offline
          Ravi Bhavnani
          wrote on last edited by
          #4

          He might be trying to get around the problem that many ISPs require you to be connected to them in order to use their SMTP server. It's not sufficient to just supply a username and password. /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

          P 1 Reply Last reply
          0
          • R Ravi Bhavnani

            He might be trying to get around the problem that many ISPs require you to be connected to them in order to use their SMTP server. It's not sufficient to just supply a username and password. /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

            P Offline
            P Offline
            Paul Oss
            wrote on last edited by
            #5

            Ravi Bhavnani wrote: He might be trying to get around the problem that many ISPs require you to be connected to them in order to use their SMTP server. It's not sufficient to just supply a username and password. You're talking about the relaying issue, I assume. Yeah, it seems like trying to hit a finishing nail in with a sledgehammer to void using SMTP servers to deliver email. Paul

            1 Reply Last reply
            0
            • S Shamoon

              Hi !! I like to develop application in VC++ to send email. But i neither want to use MAPI nor I want to use any SMTP server. There are excellent articles here by PJ Naughter to send maill using MAPI and without using MAPI. But i want my application not to use any SMTP server and I want it to send mail directly. I hope that it is possible if one is connected to internet. Is there any sample application you aware of present somewhere ????

              M Offline
              M Offline
              markkuk
              wrote on last edited by
              #6

              "Sending mail directly" means talking to the recipient's SMTP server, so there's no way around the SMTP protocol.

              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