Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

4 votes
0 answers
2k views

How to Setup up Gsuite smtp-relay and PHPMailer

Hi I've been struggling with how to setup the SMTP-relay that comes with gsuite. I have asked google support but not even they know. What is happening is when i run this code to send emails no emails ...
Roboman Robo's user avatar
1 vote
2 answers
4k views

Failed to authenticate on SMTP server in Laravel 6

I am trying to use smtp email functionality in my Laravel 6 Application. This is my .env file code : MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 MAIL_USERNAME=******@gmail.com ...
aliasgar vanak's user avatar
4 votes
1 answer
2k views

Laravel Mail - Can't use G Suite account for SMTP (2FA and App password created)

I want to use my G Suit account to send email. I have already enabled 2FA and create app password just like in this answer. Here is my config: MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=587 ...
Dũng Nguyễn's user avatar
0 votes
0 answers
157 views

"Mail error: The following From address failed: [email protected] : Called Mail() without being connected"

I am trying to create an HTML Form to send emails via PHP and SMTP using GMail or Google Apps. I am using the "phpmailer" and the folder is named as "phpmailer". I am on my domain, using the cpanel, ...
Matheus Martins's user avatar
0 votes
0 answers
489 views

smtp not working for G suit accounts

require 'send/PHPMailerAutoload.php'; $mail = new PHPMailer(); //Enable SMTP debugging. $mail->SMTPDebug = 0; //Set PHPMailer to use SMTP. $mail->isSMTP(); //Set SMTP host name $...
Ankit Sharma's user avatar
2 votes
0 answers
6k views

fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086

Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in D:\vhosts\abc.com\httpdocs\...
Greyson's user avatar
  • 94
-3 votes
1 answer
44 views

G suite mail automatic mail copying to admin

I have 3 admins in my G-suite. One is - Admin1. Now, what i want, whenever a specific user - User1, send email, anywhere. It automatically gets copied - to Admin1. How to do this ? Thanks in advance ...
taz coder's user avatar
0 votes
1 answer
423 views

Debugging SMTP email failures - GSuite

I am working on an eCommerce site that sends a number of emails to the customer when they complete their order using G Suite SMTP relay service. But a large number of these emails are failing. There ...
MP_Webby's user avatar
  • 916
0 votes
1 answer
2k views

Sending email through smtp-relay.gmail.com end up connecting to local smtp server

I have a Gsuite account. I setup a rule to allow SMTP relay through gmail servers, whitelisting my IP. Also, the FROM address is with my registered domain at Gsuite. And all my MX records point to ...
Henry's user avatar
  • 1,414