Unable to send emails

Community Support for Booked Scheduler
Post Reply
Lardboy
Posts: 3
Joined: Wed Aug 11, 2021 11:48 pm

Unable to send emails

Post by Lardboy »

Hello

I have been looking everywhere for an answer and I hope someone can help.

I have gone through setups and I can use sendmail to make it so I can send an email (just a basic one) from a php script using a google account.

When it comes to setting it up to work in BookScheluler though, I cannot for the life of me get it to work.

I have tried all sorts of different things in the configuration settings (sendmail, smtp along with all the smtp settings for google) but nothing seems to work.

Has anyone else got it working with google, and if so, what settings are you using?

Hope that makes sense.

Thanks,

Lardboy :D

Lardboy
Posts: 3
Joined: Wed Aug 11, 2021 11:48 pm

Re: Unable to send emails

Post by Lardboy »

Here is an example of the error it gives when I use the SMTP settings (if that helps):

2021-08-12 01:21:26 Connection: opening to smtp.google.com:587, timeout=300, options=array ( ) 2021-08-12 01:21:26 Connection: opened 2021-08-12 01:21:47 SMTP -> get_lines(): $data is "" 2021-08-12 01:21:47 SMTP -> get_lines(): $str is "421 Cannot connect to SMTP server 74.125.133.26 (74.125.133.26:587), connect error 10060 " 2021-08-12 01:21:47 SERVER -> CLIENT: 421 Cannot connect to SMTP server 74.125.133.26 (74.125.133.26:587), connect error 10060 2021-08-12 01:21:47 CLIENT -> SERVER: EHLO 192.168.1.4 2021-08-12 01:21:47 SMTP -> get_lines(): $data is "" 2021-08-12 01:21:47 SMTP -> get_lines(): $str is "" 2021-08-12 01:21:47 SERVER -> CLIENT: 2021-08-12 01:21:47 SMTP ERROR: EHLO command failed: 2021-08-12 01:21:47 SMTP NOTICE: EOF caught while checking if connected 2021-08-12 01:21:47 Connection: closed 2021-08-12 01:21:47 SMTP Error: Could not connect to SMTP host. 2021-08-12 01:21:47 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting

Lardboy
Posts: 3
Joined: Wed Aug 11, 2021 11:48 pm

Re: Unable to send emails

Post by Lardboy »

Hello

I have tried it with the word 'mail' instead of 'smtp' or 'sendmail' and would you believe it....it worked.

Thanks for all who looked and I hope it helps someone :)

Lardboy

Post Reply