While submiting the contact form, the user recieves an autoreply (everything works charm!)
The problem comes when the e-mail from the autoreply is the same as the one on the SMTP.
Trying to solve the problem I added the following e-mail on this line:
$config['autoreplyFrom'] = 'email@mydomain.ro'; but it does not work. (please, note that the domain from autoreply from is different of the original on SMTP, but also changing it to the same (original) does not work either)
In the other hand, as suposed (and also well documentated on your files), doing the configuration with the PHP mail() function does not work with Gmail servers, so I had to solve the problem with the SMTP config.
Also let me attatch the code from SMTP to see if I am missing something: