Sending a message to an email address?

Is it possible to write code in pascal to send a message to an email
address. I'm writing a program that updates information in a form then
sends the form to my email address. But I'm not too crash on on the comms
side of pascal. I realise I would need to check if the modem was connected
to the internet and then send the info......

Sean