The mail() function for PHP works on free/paid accounts.
But be aware that there have been issues with people using outside email addresses (ie their gmail or hotmail account) in the "From" header. It is best to use an email account from your x10 account.
Or are you asking for help to code the script?