happypete Posted December 17, 2012 Share Posted December 17, 2012 (edited) 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 (smtp@yourdomain.com) with the SMTP PHPMailer, it works fine. If I want to use info@mydomain.com 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 smpt@mydomain.com 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 Edited December 17, 2012 by happypete Quote Link to comment https://forums.phpfreaks.com/topic/272101-sending-form-mail-with-smtp-and-using-gmail-for-email/ Share on other sites More sharing options...
Muddy_Funster Posted December 17, 2012 Share Posted December 17, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/272101-sending-form-mail-with-smtp-and-using-gmail-for-email/#findComment-1399863 Share on other sites More sharing options...
happypete Posted December 17, 2012 Author Share Posted December 17, 2012 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? Quote Link to comment https://forums.phpfreaks.com/topic/272101-sending-form-mail-with-smtp-and-using-gmail-for-email/#findComment-1399890 Share on other sites More sharing options...
Muddy_Funster Posted December 18, 2012 Share Posted December 18, 2012 (edited) 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 Edited December 18, 2012 by Muddy_Funster Quote Link to comment https://forums.phpfreaks.com/topic/272101-sending-form-mail-with-smtp-and-using-gmail-for-email/#findComment-1400041 Share on other sites More sharing options...
trq Posted December 18, 2012 Share Posted December 18, 2012 I don't see what this has to do with php? Quote Link to comment https://forums.phpfreaks.com/topic/272101-sending-form-mail-with-smtp-and-using-gmail-for-email/#findComment-1400042 Share on other sites More sharing options...
Muddy_Funster Posted December 18, 2012 Share Posted December 18, 2012 I don't see what this has to do with php? Me either, but I lack the power to move it muhahahaha Quote Link to comment https://forums.phpfreaks.com/topic/272101-sending-form-mail-with-smtp-and-using-gmail-for-email/#findComment-1400045 Share on other sites More sharing options...
happypete Posted December 18, 2012 Author Share Posted December 18, 2012 thanks for the response - sorry didn't know what section to put it in, but someone answered it so the desired result was achieved Quote Link to comment https://forums.phpfreaks.com/topic/272101-sending-form-mail-with-smtp-and-using-gmail-for-email/#findComment-1400053 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.