Thanks for the hint!<br><br>I need a solution which sends the email right after the node has been created (30-60 Seconds delay would be ok).<br><br>I had a quick look at the rules scheduler code. Unfortunately it's not a real timer solution. It just wirtes a record to the db. The next time cron is run all sceduled rule sets which have expired are executed. I think it's not a good idea to call cron every 60 Seconds.<br>
<br>Is there a way to tell drupal (or apache) to do something in x Seconds?<br><br>Best Regards<br>Ernst<br><br><br><div class="gmail_quote">2010/1/28 Steven Jones <span dir="ltr"><<a href="mailto:steven.jones@computerminds.co.uk">steven.jones@computerminds.co.uk</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">You could use the rules module, in a fairly complex way:<br>
<br>
Add you email sending rule as a new rule set.<br>
Enable the rules scheduler component, and set it so that 30 seconds<br>
after a new node is created the rule set is called with the node<br>
inserted. This might work, is probably over-complicated, you won't<br>
like the UI, but it's very flexible.<br>
<br>
Regards<br>
Steven Jones<br>
ComputerMinds ltd - Perfect Drupal Websites<br>
<br>
Phone : 024 7666 7277<br>
Mobile : 07702 131 576<br>
Twitter : darthsteven<br>
<a href="http://www.computerminds.co.uk" target="_blank">http://www.computerminds.co.uk</a><br>
<br>
<br>
<br>
2010/1/28 Ernst Plüss <<a href="mailto:ernst.pluess@gmail.com">ernst.pluess@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi Drupalfriends<br>
><br>
> How can I send the contents of a node by email after it has been created?<br>
><br>
> I installed the print module and tired to call their methods from<br>
> hook_nodeapi up on $op=='instert'. But it turned out that at this point not<br>
> all node information is saved, which causes a lot of funny side effects<br>
> (access control, strange messages on screen, etc).<br>
><br>
> The best thing I found is to have a hidden iframe, when the contents is<br>
> shown after the user hits send. The link of the iframe would call a call<br>
> back url which triggers the mail functionality. But I'm not really happy<br>
> with this solution.<br>
><br>
> Any ideas are welcome?<br>
><br>
> Best Regards<br>
> Ernst<br>
><br>
><br>
</div></div></blockquote></div><br>