简体   繁体   中英

Drupal: send node content in email after submit

I have a content type that the content needs to be emailed righted after submitting, is it any simple way to do that with drupal? I have rules mod but not seeing a way to actually send the content... just an email reminder at most.

First try Ayesh's suggestion in the comment box. Its simple enough and if your requirement is not full filled then do the below.

1) set up rules to trigger when a content has been saved as per your criteria. 2) Rules has a hook called hook_rules_action_info() you need to make a file called YOURMODULE.rules.inc in your module dir and use this hook there. 3) There you can then send the email as per your specific need. using the drupal_mail function()

Hope this helps. Vishal

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM