Dear all,<br><br>I&#39;ve been trying to use the recipe mailform2 to send to an email address the data collected from 2 forms on a single website. Here is the piece of code I am using and that I can&#39;t get to work:<br><br>
include_once(&quot;$FarmD/cookbook/mailform2.php&quot;); <br>#<br>#Application form<br>if ($pagename == &#39;Main.ApplyForPosition&#39;) {<br>$Mailform2Subject=&#39;New volunteer candidate&#39;;<br>$Mailform2SuccessPage=&#39;
Main.SuccessfulVolunteerRegistration&#39;;<br>$Mailform2FailurePage=&#39;Main.VolunteerRegistrationFailure&#39;;<br>$Mailform2Recipient=&#39;<a href="mailto:me@mydomain.com">me@mydomain.com</a>&#39;;<br>$Mailform2Text = &quot;First name:&quot; . $_POST[&#39;first_name&#39;] . &quot;Last name:&quot; . $_POST[&#39;last_name&#39;] ;
<br>#<br>#Subscription to the newsletter<br>} else {<br>$Mailform2Subject=&#39;New subscription&#39;;<br>$Mailform2SuccessPage=&#39;Main.SuccessfulRegistration&#39;;<br>$Mailform2FailurePage=&#39;Main.RegistrationFailure&#39;;
<br>$Mailform2Recipient=&#39;<a href="mailto:me@mydomain.com">me@mydomain.com</a>&#39;;<br>$Mailform2Text = $_POST[&#39;username&#39;] . &quot;: &quot; . $_POST[&#39;email&#39;] . $FullName;<br>}<br><br>The script does not work because even if I am on the page 
Main.ApplyForPosition, it goes in the &quot;else&quot;.<br><br>Can you help me to find the problem?<br>Kind regards,<br><br>Benoit<br><br><br>