Drupal 8's SMTP Authentication module could not connect to SMTP Host [closed]

£可爱£侵袭症+ 提交于 2019-12-23 01:54:35

问题


I've found other threads online that deal with this specific problem, but none have helped. I have two questions: One with Drupal 8, the other with telnet.

Background: A client is using a third party company to handle all of their emails. I manage a Drupal 8 site for them that sends some emails with PHP's mail() function. Unfortunately, those emails are being tagged as spam and being sent to their spam folders. The third party's solution was to set up an account on their Outlook SMTP server (not sure if I'm using that terminology correctly) for this site. I'm trying to install the SMTP Authentication module on the site but the test email won't send out. Right now I just get an error message that says 'SMTP Error: Could not connect to SMTP host.' and I'm trying to figure out why it can't connect to the host. Obviously there are many reasons why that might happen, so I'm looking for ideas to narrow down possible problems.

What I've tried: I haven't gotten very far. I downloaded the module from it's page and uploaded it via the modules page, then went to the settings and filled out the following information:

  1. SMTP Server: 'smtp.office365.com'
  2. SMTP Port: 587
  3. Use encrypted protocal: Use TLS (as instructed by 3rd party. I also tried Use SSL and No)
  4. Username: Username given by 3rd party
  5. Password: Password given by 3rd party. This field is blank when I load the page after saving, but the instructions say that this is normal.
  6. E-mail from address: The site admin's email address
  7. Turn this module on or off: On

Everything else can be assumed to be blank or unchecked.

Questions:

  1. Is there any other set up that I'm obviously missing? Any other settings I need to adjust in other files?

  2. Is there any way to validate the credentials I was given for the SMTP server outside of Drupal? With telnet perhaps?

Thank you for your help!!


回答1:


Have You considered installing and configuring something like Postfix and just let Drupal send mails the “normal way”?



来源:https://stackoverflow.com/questions/48470062/drupal-8s-smtp-authentication-module-could-not-connect-to-smtp-host

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!