a simple program that can let you e-mail

This is a discussion on a simple program that can let you e-mail within the Windows Programming forums, part of the Platform Specific Boards category; Hi EveryOne, I am trying to write a program than can let you e-mail from windows based platform, but i ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    68

    Lightbulb a simple program that can let you e-mail

    Hi EveryOne,


    I am trying to write a program than can let you e-mail from windows based platform, but i have not done these before so can you anyone give me a hit, or let me know if that can be done or not.....One more thing i don't want it to be web based.


    Thanks
    Pratik

  2. #2
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    Well, first you have to find a SMTP server and learn the protocol.

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    68

    Lightbulb Do you have anylinks

    Do you have anylinks that can help me learn about it.....

  4. #4
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  5. #5
    Registered User Penguin of Oz's Avatar
    Join Date
    Dec 2002
    Posts
    16
    In addition to learning about the SMTP protocol, you'll need to learn about the wonders of Winsock (eugh). Anyone know a link to a good Winsock tutorial?

    When you find an SMTP server, experiment with it to veirfy what you learn: connect to it using Telnet (e.g. telnet smtp.blah.com 25) and try typing this:

    MAIL FROM: me@myisp.com
    RCPT TO: you@yourisp.com
    DATA
    Subject: Hello there!
    Hey =)
    This is a test e-mail
    .

    Take specific notes of the feedback you get from each line you type and make certain that you add the single-lined period after the e-mail. Feedback from each command will be a number followed by a text reply. You only need to check the feedback NUMBER, for example:

    501 This is some strange error?

    You'd only need to identify the 501; you can define the nature of the feedback message by the first digit: 5. Different digits mean different things (I think the "O.K." messages begin with 2).

    You'll probably want to spend 2 or 3 hours with a note pad and pencil, jotting down various responses from -different- SMTP servers using commands that you've learnt (see Hammer's post before mine). Write down what you type and their responses; build up a collection of feedback and their numbers, what they are (e.g. "It went ok" or "Error"), etc.

    Also, what you will need to take into account is that some SMTP servers don't allow "relaying", which (I think) means that you can't send e-mail from an address other than the one that the SMTP server is connected to - I can't confirm this is the reason, but eh.

    Good luck!
    "I don't think there's anything else I can do... my shoes are tied"

  6. #6
    Registered User
    Join Date
    Oct 2001
    Posts
    68

    Thanks U ALL

    Hi EveryOne,

    I have got a good start now, i have finals these week but i am going to start programming it right after my final are over so i will keep you guess posted about the process...

    Thanks
    Pratik

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 12:27 PM
  2. [Help] Simple Array/Pointer Program
    By sandwater in forum C Programming
    Replies: 3
    Last Post: 03-30-2007, 02:42 PM
  3. simple silly program
    By verbity in forum C Programming
    Replies: 5
    Last Post: 12-19-2006, 05:06 PM
  4. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 11:39 AM
  5. Need help with simple DAQ program
    By canada-paul in forum C++ Programming
    Replies: 12
    Last Post: 03-15-2002, 07:52 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21