bug fix for server unable to connect
using common mail function now
updated SMTP function name