没有管理面板的Drupal CMS站点中的邮件配置

时间:2018-12-03 10:50:36

标签: drupal

我在Drupal 7中有一个CMS站点,有一个与我们联系的表单,我们需要配置电子邮件,但是我们没有管理面板。

我在与我们联系的php文件中找到以下代码,我认为这是用于发送邮件:  邮件($ to,$ subject,$ formcontent,$ headers)

任何人都可以指导我如何在没有管理面板的情况下将SMTP服务器的详细信息配置到drupal站点。

预先感谢

1 个答案:

答案 0 :(得分:0)

There's a contributed module for this purpose. https://www.drupal.org/project/smtp - you can install this module and just from the backend user interface of Drupal, you're able to use an arbitrary SMTP server to send emails.

Also condider using https://api.drupal.org/api/drupal/includes%21mail.inc/function/drupal_mail/7.x for sending emails instead of mail.

相关问题