Re: Gmail/email & PHP

From: Date: Sat, 31 May 2025 08:26:50 +0000
Subject: Re: Gmail/email & PHP
Groups: php.general 
Request: Send a blank email to php-general+get-328720@lists.php.net to get a copy of this message
> Date: Saturday, May 31, 2025 16:34:43 +1200 > From: gordonisnz@gmail.com > > On Sat, 31 May 2025 at 12:24, Richard wrote: >> >> is the password you are using: >> >> $mail->Password = 'PASSWRD'; >> >> your google/gmail (webmail) login pw or an app password? > > > thats my gmail password (gmail is on a domain) > [you clipped out the critical question, that gives the full context, from my response -- is this your google site-wide pw, or an app-password. i put that back in.] Google no longer supports the use of your site-wide pw for access to a service when using a 3rd-party application. You will need to create and use an "app password" with this application. [or use Oauth 2.0.] A quick search should turn up the relevant google support document that explains this, including a link to the app-password generator.

« previous php.general (#328720) next »