DelphiFAQ Home Search:

Accessing HotMail from Delphi


commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.


Is it possible to access a hotmail account through the POP3 and SMTP? I know its a web frontend but I'd like to write a automated application which can send and recieve mail using a Hotmail account.


Hotmail isn't accessable through POP/SMTP. you must use their web interface.

There is no possible shortcut to read mail but you can open the default Hotmail account in new message mode using this ShellExecute call:

Thanks to Sylvestro Lorello for a correction in the source code.

program dummy;


  ToAddress: String;
  EightSpaces: String;

  ToAddress := '';
  // Don't know why but this is required to get the
  // correct compose address...
  EightSpaces := '        ';
  ShellExecute(Handle, PChar('open'), PChar('rundll32.exe'), 
               + EightSpaces + ToAddress), nil, SW_NORMAL)

Content-type: text/html


2008-05-16, 08:04:28
anonymous from Canada  
How to read the message of hotmail, live and msn with pop3

with delphi6



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: