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

 
Tóm lược Drupal Association đã meeting vào: 14 May 2014

Tóm lược Drupal Association đã meeting vào: 14 May 2014

If there is any steady measure of the passage of time it may just be the monthly Drupal Association Board Meetings.

2016: Tan vỡ “bong bóng” mạng xã hội, suy tàn phần mềm PC

2016: Tan vỡ “bong bóng” mạng xã hội, suy tàn phần mềm PC

Các phần mềm trên PC trở nên lép vế, tội phạm mạng phát triển mạnh trong những năm tới, do sự bùng nổ các ứng dụng di động và điện toán đám mây...

Multi-headed trong Drupal

Multi-headed trong Drupal

One of the strengths of Drupal is that it's not just a tool for building a single website. It can be used equally well for managing multiple companion sites together.

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

 

Diet con trung