Well obviosuly they will need mail servers and databases and things like that so yes they will use front-end and back-end scripts/software.
You are probably talking $000.000's if not $0,000,000's for a system like hotmail.
You are probably talking $000.000's if not $0,000,000's for a system like hotmail.