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

 
Cách thiết lập chiều rộng tối thiểu và tối đa các tab trong Firefox

Cách thiết lập chiều rộng tối thiểu và tối đa các tab trong Firefox

Nếu bạn thường xuyên mở rất nhiều tab trong Firefox, đôi khi bạn sẽ không thể nhìn thấy tất cả các tab đã mở do chúng quá nhỏ, và cách duy nhất để di chuyển giữa các tab là sử dụng các mũi tên di chuyển tab.

iOS-Android lặp lại cuộc chiến Mac-PC?

iOS-Android lặp lại cuộc chiến Mac-PC?

Smartphone và máy tính bảng đang dần trở thành máy tính cá nhân của thời đại ngày nay. Hai nhân vật chính đang chiếm lĩnh thị trường là iOS của Apple và Android của Google.

Hướng dẫn custom Drupal breadcrumbs

Hướng dẫn custom Drupal breadcrumbs

breadcrumbs, how I hate you. Such a tiny little piece of a site, yet so much complexity and time spent. For some clients, you would think this is their number one must have feature based on how much time they spend checking and critiquing them page-by-page.

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

 

Diet con trung