Could you please help me modify your great module?
I would like to change the email vars just to send to a direct email address rather than the author.
is this how i would do it?
//create email vars
$node = node_load(arg(1));
$pageAuthor = user_load(array('uid' => $node->uid));
$to = name@email.com.au;
thanks
Comments
Comment #1
JmsCrk commentedYes, that's right Kanaka
In fact you can even drop the first two lines of that section as they are only there to get the email from the page author. So just set the $to variable as normal:
$to = example@domain.com.au;
Thanks for the kind words,
James
Comment #2
Kanaka commentedthanks for getting back to me James, much appreciated.
I have modified your module slighty to be used as an entry form to a competition. I just gave it extra questions. Would you know how i could code it so that after clicking 'send' they go to a new page i have created where it says 'Entry Recieved' etc rather than the heading Contact Sent.
thanks
Kanaka
Comment #3
JmsCrk commentedYou could get it to redirect, Kanaka, but I think you should try the webform module instead - sounds like exctly what you need!
Comment #4
JmsCrk commented