Define variables first then retrieve data

If the variables are blank PHP will give error messages making the
bukkit plugin unable to communicate with the mail server.