Hi all,
I run into an issue with the
SendEmailPlugin. Basically i have this bit of code to send email in one topic (please check the raw view since seems i'm not able to format it properly):
<form enctype="application/x-www-form-urlencoded" action="%SCRIPTURL{sendemail}%/%WEB%/%TOPIC%" method="post">
<input value="test,please ignore it" name="subject" id="subject" type="text" size="70"></input>
<textarea style="width: 100%;" name="body" rows="6" cols="70">blah</textarea>
%TABLE{ sort="on" tableborder="0" cellpadding="4" headeralign="center" dataalign="center" cellspacing="3" cellborder="0" headerbg="gray" headercolor="black" databg="#FAF0D4, #F3DFA8" headerrows="2" footerrows="1" }%
| *Topic* | *OWNER* | *Backup owner* | *Last Update* | *Time since last update* | *Updated by* | *Overdue* | *Notes and Deliveries* | *Reminder*|
| [[link to topic][MyTopic]] %INCLUDE{"MyVar" OWNER="paolo" BACK_OWNER="" DRTOPIC="MyTopic" MAIL="paolo"}%
</form>
And the Myvar topic contain this:
| %OWNER% | %BACK_OWNER% | %REVINFO{topic="%DRTOPIC%" "$date at $time" }% | %SEARCH{ "^%DRTOPIC%$" scope="topic" regex="on" nonoise="on" format="$percntCALC{$FORMATTIMEDIFF(sec, 2, $TIMEDIFF($TIME($date GMT), $TIME(), sec))}$percnt ago"}% | %REVINFO{topic="%DRTOPIC%" "$username"}% | %SEARCH{"^%DRTOPIC%$" scope="topic" regex="on" nonoise="on" format="$percntCALC{$IF($TIMEDIFF($TIME($date GMT), $TIME(), sec) > $EVAL(2*2629743),$percntRED$percnt topic out of date! $percntENDCOLOR$percnt | | <input value="%MAIL%@google.com" name="to" id="to" type="text" size="30"></input> <input value="Send" type="submit"></input> | , $percntGREEN$percnt topic up to date $percntENDCOLOR$percnt | | | )}$percnt"}%
The result should be a complete table with an email form embedded, the formatting works, i see the send button and everything but for some reason is not sending the email unless i hardcode the recipient into the
MyVar which is obviously not what i need since i need to include
MyVar for different topics owned by many people. Also I'd like to include more than one other contact as CC, again via a parameter to pass to
MyVar. Can anyone help me understand what I'm doing wrong?
Many Thanks in advance, Paolo
--
PaoloGallo - 2012-03-25
Discussion and Answer
Not an answer, but I fixed the formatting above.
--
PeterThoeny - 2012-03-26
You might run into a skip include issue of CALC, see
SpreadSheetPlugin
--
PeterThoeny - 2012-03-26
First of all thanks for fixing my formatting instead of shouting at me
and setting the skipinclude variable definetly fixed more than what i was hoping! in fact, without that variable the table kept his formatting only if all the entries were placed in the same row, which as you can imagine was a bit of a problem to read or modify. now i can put them in different rows,
and the email is finally working! (i didn't try the cc field with more than one recipient yet, but now is not important

)
Thank you very very much for the help!!
p
--
PaoloGallo - 2012-03-27
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.