GMail is a real pain to work with since they have extended their own set of permissions on top of the already extended SMTP requirements
The first thing I would check is the security settings you have for the gmail account you are trying to send from; specifically those involving
Allow Less secure apps[
^]