the contact form solution pack is configured using the php mail() function. the php mail() function does not support server authentication.
You would need to use the universal Email extension to edit the Universal Email behavior to use the Pear Mail For SMTP to be able to use Serer Authentication, you will not be able to accomplish this through hand coding.