I would recommend creating a free Google Apps account for my mydomain.com domain and using an email account to send your email.
You can configure contact@mydomain.com as an account through Google Apps, and then use this as a sender for your email - the settings for PHPMailer should be the same as for gmail, except for using @mydomain contact. com as your username for authentication (and any password you set up, obviously).
If you want to redirect the email address sent to the contact@mydomain.com address to your gmail account, you can do this the same as for the gmail account .
source share