sending mail

who know the code that can sending mail to my acount???
help me please...
No standard code is capable of that. Look up libs for the OS you have in mind.
i use windows..can u gv me the simple code plz?
Sorry, I literally don't know any. Look it up on MSDN, the microsoft developer network.
thnx..
A library that provided an interface for sending e-mail would be called an e-mail client. That should help searching.
sending mail is very easy using c++. use pop or pop3 protocol. Just a 50 line code will do it. google C++ and pop.

you just have to open a socket and follow the protocol. the protocol can be found here:
http://www.ietf.org/rfc/rfc1939.txt

sample protocol:
S: <wait for connection on TCP port 110>
C: <open connection>
S: +OK POP3 server ready <1896.697170952@dbc.mtview.ca.us>
C: APOP mrose c4c9334bac560ecc979e58001b3e22fb
S: +OK mrose's maildrop has 2 messages (320 octets)
C: STAT
S: +OK 2 320
C: LIST
S: +OK 2 messages (320 octets)
S: 1 120
S: 2 200
S: .
C: RETR 1
S: +OK 120 octets
S: <the POP3 server sends message 1>
S: .
C: DELE 1
S: +OK message 1 deleted
C: RETR 2
S: +OK 200 octets
S: <the POP3 server sends message 2>
C: QUIT
S: +OK dewey POP3 server signing off (maildrop empty)
C: <close connection>
S: <wait for next connection>

i will try to learn that
thnx writeonsharma
look here and you are done.

www.kbcafe.com/articles/HowTo.POP3.pdf
hha..
great writeonsharma!!!
thanx...
POP3 is not for sending. You want to look into "SMTP" (Simple Mail Transfer Protocol) instead.

Ciao, Imi.
Edit: except you mean "sending from my mailbox over there into my computer just here". Then it's POP3. :-D
Last edited on
that does not work, too... u need have an mx record for your mail server, or noone of those big email-providers(like gmx, web, yahoo, etc) will not accept your requests...

i already encountered this problem...
so? what the solution bro?
i currently don't have the code though but if you just want to send mails, pop will do that for you.

i have send mails to yahoo using pop. yes gmail doesnt accept that mail because it understands it to be junk or bulk mails and rejects. but i think when you have some basic code, removing that problem will not be a big deal.

just give it a try.
roger That
Topic archived. No new replies allowed.