Ok - this might sound dumb but here's my issue.
I have a form that i successfully pass a hidden field to using this:
<input type="hidden" name="propemail" id="propemail" value="'.get_post_meta(isset($GET['pid'])? $GET['pid'] : get_the_ID(), property_email, true).'"/>' . $nl;
ie. i can see the correct property_email (actual email) in my form.
I'm trying to pass this email value to the php mail function. I dont' know how to do that.
here is what I'm trying:
$propmail = $_GET['propemail'];
which i then call here
$headers.= "BCC: ". $propmail . $eol;
Now when i hardcode with this:
$propmail = 'joe@something.com'
It works (the message is sent to the bcc email address.
Can someone PLEASE help me.
Thanks in advance.