[Plugin: Contact Form 7] <?php $curauth->user_email;?> in the “To:” field at form settings
-
The form is supposed to appear only on author pages with url like “http:/misite.com/author/user123”.
In the “To:” field of “Mail” form settings section I want to use email of user, whose author page is that (email of user123, if path is /author/user123 ) to send him a messege.
I tryed to insert “<?php $curauth->user_email;?>” ($curauth is user object set on that page during its generation earlier, but I dont know if it happens to be set in contact form function scope), but have “red” error.
Maybe there IS a way to correctly insert php generated email address into “To:” field of form settings?
- The topic ‘[Plugin: Contact Form 7] <?php $curauth->user_email;?> in the “To:” field at form settings’ is closed to new replies.