The implementation of the mail sending function of Drupal website

Source: Internet
Author: User
Tags php class test email address drupal

Drupal site can use Gmail mailbox to send mail to users, the implementation of similar functions have SMTP or Phpmailer module, I use the Phpmailer module, the following is the process of my configuration, posted for your reference.

1. Download Phpmailer module

Http://drupal.org/project/phpmailer

2, enable the Phpmailer module, in the "Site Settings" point "Phpmailer" settings, the page will be error "Class ' Phpmailer ' not found in .... Phpmailer.class.inc".

Why is it? The original Phpmailer module also needs class.phpmailer.php class.smtp.php

Open the Phpmailer module under the Phpmailer folder, the folder has a COPYHERE.txt, open can read a word:
Copy the downloaded files class.phpmailer.php class.smtp.php into this directory.

So when installing the module, you need to carefully read the documentation in the module to reduce the chance of error.

The above two files can go to the following link to download:

http://sourceforge.net/projects/phpmailer/files/

3, OK, download the above required files, you can go to configure the Phpmailer

Gmail's SMTP server is: smtp.gmail.com,

The port is: 465, this page is prompted.

Use encrypted Protocol (whether encryption protocol is used): This option uses SSL

User name: Enter your Gmail user name, note here do not add @gmail.com, the front of the can.

Password: the password for your Gmail account

Name: The name of the sender in the message

Test Email Address: You can enter one of your own mailbox to see if you can receive mail.

4. After the setup is complete, you can receive the email from the website when you check the email.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.