It should execute without any error before we can move it inside the form. Please try fixing the error first.I just tried putting it outside of the <cms:if k_success> tag and it executed (Obviously with an error) - so what would be my next step?
No. The frm_variables are available only within a form's k_success condition.As for hard-coded variables - are they hard coded to be frm_variablename
By hard coded strings I mean don't use variables at all. Rather put in specific values e.g.
- Code: Select all
$mail->From = 'yourmail@gmail.com';
Hope this helps.