I have create a webform and i want to configure it sending emails with smtp authentication. I have install the SMTP authentication module also, but i cant find any option that allows me to setup webform for using smtp.
Is this possible? Any advice?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
Webform module uses the
mail() for sending the mails.
SMTP Authentication Support module allows Drupal to bypass the PHP
mail() function and send email directly to an SMTP server.
If you have SMTP module installed in your drupal site than you would have to configure the SMTP settings (
/admin/config/system/smtp) for sending the email
Example (Configuring SMTP for GMAIL):
A. INSTALL OPTIONS: 1. Turn this module on or off: (SELECT "ON") B. SMTP SERVER SETTINGS: 1. Server: smtp.gmail.com 2. Backup server: (LEAVE BLANK) 3. Port: 465 4. Use encrypted protocol: (SELECT "Use SSL") C. SMTP AUTHENTICATION: 1. Username: (ENTER YOUR GMAIL EMAIL ID) 2. Password: (ENTER YOUR ABOVE EMAIL ID PASSWORD) D. E-MAIL OPTIONS: 1. E-mail from address: (ENTER YOUR GMAIL EMAIL ID AS ENTERED ABOVE) 2. E-mail from name: (ENTER SITE NAME, ITS DEFAULT VALUE IS DRUPAL VERION) 3. Allow to send e-mails formated as Html (ENABLE CHECKBOX IF YOU WANT) E. SEND TEST E-MAIL: 1. E-mail address to send a test e-mail to: (ENTER YOUR EMAIL ID AT WHICH YOU WANT TO RECEIVE TEST MAIL)
Yes it is possible.The Problem is that by default webform send emails out via mail(). To fix it we have to assign a smtp class to webform. To do so follow this step and in order to configure smtp with a gmail account @Ankit has mentioned it very clear here already.
steps in summary
Drupal SMTP auth module can help you.
This module allows Drupal to bypass the PHP mail() function and send email directly to an SMTP server. The module supports SMTP authentication and can even connect to servers using SSL if supported by PHP. This module uses the smtp and mail class's from PHPMailer. https://github.com/PHPMailer/PHPMailer