Skip to main content
Help Center
The GoDaddy Community will undergo maintenance starting on Wednesday, July 28th at 3pm PST / 6pm EST. Learn more
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sending emails from personal/business Gmail account

I'm trying to send emails from both my personal/business accounts on Gmail, But I get an error:

SMTP ERROR: Failed to connect to server: Connection refused (111)

Here are the options:

Host = ''
SMTPAuth = true
Username = ''
Password = '******' SMTPSecure = 'tls' Port = 587

 I executed the same code on another website hosted on another hosting and it worked fine, After searching it seems that Godaddy is blocking sending emails from other mail servers.


So I tried the following options:

Host = '';
Port = 25;
SMTPAuth = false;
SMTPSecure = false;

But the email was sent to the 'Spam' folder.


I have been trying for days now without any success.


So how to fix this issue?

Community Manager

Hi @mdev_mdev. Thanks for being part of GoDaddy Community! It's true that you would not be able to send email from a hosting plan with GoDaddy using an SMTP server other than I'd recommend taking a look at the suggestions on this post to help with mail delivery issues. Hope this helps. 


JesseW - GoDaddy | Community Manager | 24/7 support available at | Remember to choose a solution and give likes.