Answers.Body: <p>Check this blog post: <a href="https://civihosting.com/blog/outgoing-smtp-on-civihosting/" rel="nofollow noreferrer">https://civihosting.com/blog/outgoing-smtp-on-civihosting/</a></p>
  <p>It says you need to explicitly tell them if you want to connect to an external smtp server.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-09T16:49:05.663Z
Answers.Text: Thank you so much. That did the trick!
Answers.UserDisplayName: gillenpj
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-09T16:46:31.480Z
Answers.LastActivityDate: 2023-02-09T16:46:31.480Z
Answers.UserDisplayName: Alan Dixon
Body: <p>My ultimate aim is to connect CiviCRM to AWS SES using <a href="https://civicrm.org/extensions/airmail" rel="nofollow noreferrer">Airmail</a>. As a preliminary step, I've set up the SMTP credentials in AWS SES and confirmed they are working correctly using this <a href="https://www.gmass.co/smtp-test" rel="nofollow noreferrer">SMTP Test Tool</a>. Below is the output from the tool, and I do indeed receive the test email in my inbox.</p>
  <p><a href="https://i.sstatic.net/Zxnfq.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Zxnfq.png" alt="enter image description here" /></a>
  <a href="https://i.sstatic.net/mW8At.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/mW8At.png" alt="enter image description here" /></a></p>
  <p>However, when I enter the same credentials in CiviCRM a &quot;connected refused&quot; error occurs.</p>
  <p><a href="https://i.sstatic.net/9DSzw.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/9DSzw.png" alt="enter image description here" /></a></p>
  <p>The contents of the log file is also shown below.</p>
  <p><a href="https://i.sstatic.net/ZxUQi.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/ZxUQi.png" alt="enter image description here" /></a></p>
  <p><strong>How can I overcome this error within CiviCRM?</strong> In case it's relevant, I'm running on a Shared Host provided by CiviHosting. My CiviCRM version is 5.55.2 and my WordPress version is 6.1.1.</p>
  
Tags: <civimail><extension>
Title: Connection refused when CiviCRM attempts to send test email via SMTP, using CiviHosting
ThreadText: # Connection refused when CiviCRM attempts to send test email via SMTP, using CiviHosting
  
  (Asked by: username_0 on 2023-02-09)
  
  My ultimate aim is to connect CiviCRM to AWS SES using [Airmail](https://civicrm.org/extensions/airmail). As a preliminary step, I've set up the SMTP credentials in AWS SES and confirmed they are working correctly using this [SMTP Test Tool](https://www.gmass.co/smtp-test). Below is the output from the tool, and I do indeed receive the test email in my inbox.
  
  [![enter image description here](https://i.sstatic.net/Zxnfq.png)](https://i.sstatic.net/Zxnfq.png)
  [![enter image description here](https://i.sstatic.net/mW8At.png)](https://i.sstatic.net/mW8At.png)
  
  However, when I enter the same credentials in CiviCRM a "connected refused" error occurs.
  
  [![enter image description here](https://i.sstatic.net/9DSzw.png)](https://i.sstatic.net/9DSzw.png)
  
  The contents of the log file is also shown below.
  
  [![enter image description here](https://i.sstatic.net/ZxUQi.png)](https://i.sstatic.net/ZxUQi.png)
  
  **How can I overcome this error within CiviCRM?** In case it's relevant, I'm running on a Shared Host provided by CiviHosting. My CiviCRM version is 5.55.2 and my WordPress version is 6.1.1.
  
  **Tags:** civimail, extension
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-02-09. Score: 3 | Accepted answer
  
  Check this blog post: <https://civihosting.com/blog/outgoing-smtp-on-civihosting/>
  
  It says you need to explicitly tell them if you want to connect to an external smtp server.
  
  > **Comments:**
  > **username_0**: Thank you so much. That did the trick!  
  
  ---
  
  