-
- 48 Posts
I have a field in my form called email which i want to use as the address to send the form to. I have put &to=’[+email+]’ in my eform call, but it does not work. any ideas?
G.
Use backticks (`[+email+]`) instead of single-quotes.
-
- 48 Posts
sorry the typo is just in my post i do have &to=`[+email+]` .
i am trying to do a send to friend form.. is this not possible with eform?
-
- 1,010 Posts
It certainly is possible... Can you post your form template and snippet call?
-
- 1,010 Posts
Can’t see anything obvious so quickly... Try removing the &gotoid parameter and add &thankyou=`friendReport` &debug=`2`, then add a [+debug+] place holder to your friendReport chunk.
If the submit is successful the thankyou page should show the email body and somewhere in the debug printout you should see the mail headers. Check what the To headers says.
Using eForm 1.4.4 I am experiencing weird results with a dynamic &from ?? Did the dynamic &to end up getting resolved either? Having troubles with &from=`[+email+]` (dynamic) as we speak
I get the email, but the from field is blank. If I hard code an email in, that works fine... I’ve tried [.email.] per the docs as well... thoughts?
I have another site with eForm 1.4.2 where this is working just fine? What’s up??
UPDATE:
I just moved the snippet/.php file for 1.4.2 from the working copy (alternate server) to the server having issues (was using 1.4.4)
However, with 1.4.2 it still does not work? I am using PHP Version 4.4.1 on this box...is the section that replaces &from param placeholders maybe not compatible with PHP Version 4.4.1??
PHP Version 5.1.6 is the version where &from=`[+email+]` is working...
The snippet call:
[!eForm? &automessage=`form_thankyou` &autosender=`[email protected]` &from=`[+email+]` &subject=`Company Email Form` &to=`[email protected]` &replyto=`[+email+] &fromname=`Company name` &formid=`the_form` &report=`form_report` &tpl=`the_form_tpl` &thankyou=`form_thankyou`!]