Gửi email đến Email Addresses khác bằng Drupal Webform

Gửi email đến Email Addresses khác bằng Drupal Webform

One of our students is using Drupal's Webform module for their site's contact form.

They asked if it was possible to send submissions to different e-mail addresses based on a choice made in the form. The student wanted to send different submissions to different departments in the company.

Yes, it is possible and we're going to show you how.

Before we start, here are two useful links:

1) Install Webform

2) Create a Webform

  • Go to Add content > Webform and create a new webform.
  • Add a "Select options" component to your form as in the image below.
tutuploadsmedia_1339685890414.png
  • Click Save.
  • Find the Options area.
  • Place an email address on the left, then a pipe bar and then the label that you want visitors to choose.
tutuploadsmedia_1339684567328.png
  • Click Save component.
tutuploadsmedia_1339684964729.png
  • Finish creating the rest of your webform.

3) Customize the emails from the form

  • Click the e-mails tab oin the top-right.
tutuploadsmedia_1339686334965.png
  • Set Component value to Department.
  • Click Add.
tutuploadsmedia_1339686442855.png
  • Make sure that the E-mail to address field is set to Component: Department.
  •  
tutuploadsmedia_1339684698921.png
  • Click Save e-mail settings.
  • Your email setting will now look like the image below.
tutuploadsmedia_1339686773900.png
  • Now visit your form and your webform will now send to different e-mail addresses, depending on the selection made under Department.

Sending Drupal Webform Results to Different Email Addresses

Bạn thấy bài viết này như thế nào?: 
Average: 5 (1 vote)
Ảnh của Tommy Tran

Tommy owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy

Tìm kiếm bất động sản

 

Advertisement

 

jobsora

Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

 
Giới thiệu RESTful Web Services trong Drupal 8

Giới thiệu RESTful Web Services trong Drupal 8

REST is one of the most popular ways of making Web Services work. There are other formats such as SOAP or XML-RPC, but we are only going to focus on REST because it is the Drupal standard. REST utilizes HTTP methods, such as GET, POST, and DELETE.

Slide (tài liệu) Diễn đàn Toàn cảnh Thương mại điện tử Việt Nam - Vecom 2019

Slide (tài liệu) Diễn đàn Toàn cảnh Thương mại điện tử Việt Nam - Vecom 2019

Phiên thứ nhất với tiêu đề “Bùng nổ mua sắm online” thảo luận về xu hướng thị trường thương mại điện tử sẽ mở rộng mạnh mẽ. Năm 2019 là năm bản lề của các chính sách hỗ trợ từ nhà nước

Kinh nghiệm sử dụng s3cmd của Amazon SDK

Kinh nghiệm sử dụng s3cmd của Amazon SDK

I already had a script in place to backup the site's files and database dump.

Công ty diệt chuột T&C

 

Diet con trung