My client want to use GMail API for their existing web application using their own domain . So they can send automatic e-mail from their mail server. The code they are using is in plain PHP. Is this possible? Can anyone show me the step-by-step tutorial for this? Thank you very much
[EDIT]
So they want to send e-mail whose sender is like this: foo@mycompany.co.id
Yes it is possible!
1st you will have to enable "Less secure apps in Gmail"
IMPORTANT: If you use 2 factor authentication to access your Google account, access for less secure apps cannot be enabled. In this case, you will have to sign in using App password.
You can find Google SMTP details below:
Now, you need to integrate into your PHP Code. There are many libraries you could use . Eg: PHPMailer .
It is possible and here are some links and notes to do that
Hope this helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.