Hmmm... One thing at a time there! First of all for SSL, you will need to get an SSL capable webhosting account / server. Then you will need to purchase an SSL certificate (www.thawte.com ). Then you will need to install it on your domain. You can then setup your script to use SSL.
Sorry if that's not what you meant, but I was not completely sure.
If you could elaborate on the mailserver thing, I will try to provide some answers!