Jump to content

Sending Form Mail With Smtp And Using Gmail For Email


happypete

Recommended Posts

Hi,

 

I have a website with a domain name (yourdomain.com) and a contact form on this site that sends out the contact form detail via email using an email address I set up in my hosting account ([email protected]) with the SMTP PHPMailer, it works fine.

 

If I want to use [email protected] with google apps for business emails, can I do both at once? I've read about needing to change the MX records if I want to use my domain name with gmail, but don't know if I change the MX record if the [email protected] email will still work properly with my form, and if I can use both at once?

 

 

The SMTP script I'm using: http://phpmailer.wor...pg=exampleasmtp

 

Thank in advance

why would you want to send from a gmail account if you have your own domain account? that makes no sense. anyway, you would need to run the mail script twice, once for each of the sending domains, so just set up another script to run on the back of that one that uses the gmail settings.

I want to use gmail rather than the webmail that comes with my hosting to keep my personal gmail email in the same place as my website email so I dont have to sign into 2 different accounts?

 

So can I use SMTP to send via email using smtp:mydomain.com via my server AND use a gmail account or do I have to chnage the MX records and will then have problems with the smtp:mydomain.com going via my server?

you shouldn't need to do anything with the MX records. when using the SMTP protocall you will need to validate the account against the gmail servers and route the mail through them, thus the sending MX record will reflect the google servers. You can, however, save much headache by simply adding the domain email address to your gmail account using the gmail Mail Fetcher as explained here and have access to all the mails from both accounts via your gmail account.

 

Edt: clarified wording

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.