You can use scripts to send mail, people do it all thetime. PHPBB for instance can send confirmation emails, I know my site sends emails to users without problems.
I can't program, so I'm not really sure how this is accomplished, but the major packages shouldn't have any problems sending email.
What program are you attempting to use? We can go from there. =)