Link to home
Create AccountLog in
Avatar of jerseyguy0
jerseyguy0

asked on

smtp sendmail using google mail for a domain in php

// Sets the SMTP server to send emails
$Variable->setSMTP("smtpserver.host.com");


how do I change this php code to smtp sendmail using google mail for a domain



my domain name is luxuryhouses.com
and I am using google as domain email
ASKER CERTIFIED SOLUTION
Avatar of hankknight
hankknight
Flag of Canada image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of jerseyguy0
jerseyguy0

ASKER

i am having trouble sending emails when using localhost

but when i use my domain, I can send emails

using
smtp.gmail.com


why doesnt this work for localhost
You said that when you use your domain, I can send emails using smtp.gmail.com.
Does that mean your original question was answered?

There are many possibilities for why you cannot send mail via localhost but we don't have enough information from you to diagnose this.  

I suggest that you open a new question about your troubles with localhost because this question is about smtp for gmail.

Best luck,
Hank