Delphi .NET (2) Database (71) Delphi IDE (90) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280)
Exchange Links About this site Links to us 
|
Accessing HotMail from Delphi
This article has not been rated yet. After reading, feel free to leave comments and rate it.
Question:
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.
Answer:
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;
uses
ShellAPI;
var
ToAddress: String;
EightSpaces: String;
begin
ToAddress := 'john@pacbell.net';
EightSpaces := ' ';
ShellExecute(Handle, PChar('open'), PChar('rundll32.exe'),
PChar('C:\PROGRA~1\INTERN~1\HMMAPI.DLL,MailToProtocolHandler'
+ EightSpaces + ToAddress), nil, SW_NORMAL)
end. | |  | |  |
Comments:
|
|
|
|
How to read the message of hotmail, live and msn with pop3
with delphi6
|
|