Link to home
Start Free TrialLog in
Avatar of myleseven1
myleseven1

asked on

Building an Email system in Delphi

Hi there team,

My freinds and I want to build an email system using delphi. It would be something similar to Microsoft Office.
We are trying to get some info on how to do this effectivly. We have spoken to someone who also is building one at the moment but he is having some difficulty.
He said that while he can send and receive email via some email servers, he is having difficulty in sending and receiving emails from some major servers like yahoo and hotmail. He is trying to use the IMAP protocol to do it.
FOr our email system we definatly want to be able to send emails to people with yahoo or hotmail accounts!
It seems that building your own email system is quite difficult.

Has anyone who has done this before got any ideas so that we can get started. Is using the IMAP protocol the way to do this or should we try another way?

Why is it so difficult to send and receive to yahoo and hotmail?

Where is the best place to start so that we can develop or program along the correct track?

Any help appreciatted
Kind Regards
Myles
ASKER CERTIFIED SOLUTION
Avatar of calinutz
calinutz
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
These components might interest you

http://www.kobira.co.jp/sakura/d_net_mail.htm
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of myleseven1
myleseven1

ASKER

THanks guys,
I will need some time to work on this feedback,
Just a question for Ivanov_G
" As remember few months ago I check yahoo - it was $15/year if you want POP3 access."

Does this mean that if we paid $15/ year or whatever the cost was would make it possible to send emails through yahoo once it was configured?

Once we created the email system and we gave it to our freinds and family would each person need to pay for the yearly fee to be able to send an email through yahoo or would we only need to pay once?

THanks guys  :)
Myles
> Does this mean that if we paid $15/ year or whatever the cost was would make it possible to send emails
> through yahoo once it was configured?

You send email through SMTP (Simple Mail Transfer Protocol) and receive it via POP3/IMAP, in your case IMAP. Your mail server should be locally - as I told you above using TidSMTPServer. Thus you will have the outgoing server locally on your machine, build in your email system.

These $15/year were for something like "Yahoo Plus". This was a offer for POP3 access to your mail, 2 GB space and stuff like that. If you have POP3 you can open your Yahoo mailbox from Outlook or some other program. If you don't - you have to use the web interface on mail.yahoo.com.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Quote
"He said that while he can send and receive email via some email servers, he is having difficulty in sending and receiving emails from some major servers like yahoo and hotmail."

I can see sending, but recieveing?  How does he have his helo and ehlo setup for the smtp.  Cause yahoo doesn't have a problem sending to spam urls.  Just recieveing.

http://www.swissdelphicenter.ch/torry/showcode.php?id=2134

Nice example of doing smtp with raw sockets..
Hi guys,
A freind of mine gave me these comments. I thought you might find them interesting...

"Anyway, the problem with trying to read email with
Yahoo or hotmail is that they like to make money.  1
form of money is advertising. so hence around 2000
they stoped free poppy accounts.

There is 1 solution to this, but it is potenally
risky.
The way to get around it, is to make a HTTP client.
This client opens a socket to mail.yahoo.com and
downloads a cookie plus a web page.

What you need to do, is to read there javascript code
and upload in a http post / get request back to the
server.

The tricky part is to find out if they change the
verible names periodity or do they remain static?


Basically as you have guess it, to access them, you
need to create an automatic html broswer, you dont
need to make a javascript praser as you can hard code
the javascripts into the program.  You just need to
get the cookies, and (get 'n prase) and post.

I meant to make a program like that about 1.5 years
ago, as i was lasy when typing my username / password
all the time.  But unforantly i was also too lasy to
write the program.  :P
Orginally, i plan to make a sinple javascript wrapper,
but  1 javascript line could disable my attack, so the
only approach to this in my view is a client broswer
program....

....The main risk in that area of aproach, is that they
can change the website in many different ways to
disable it.
"

Myles

I hope you don't mind if we take a while to post replys up for this question there are a few issues we need to understand before we proceed...
Myles :)
Hi we still havn't finished the system yet but i think it may take a bit longer yet. I would like to close this question now as I don't want to leave you all waiting. Perhaps in the future I will post another similar question, by this stage I think we will have more of an understanding of what needs to be done.

Thank you all for your help
Myles