Theme4Press Forums alora How to dynamically replace email addresses in contact form? Reply To: How to dynamically replace email addresses in contact form?

Alok Maheshwari
Spectator
Post count: 303
#13477 |

Drop an email cookie named distributor_email containing the email address and then you can replace line 62 in contact.php from

$emailTo = $data['email_address'];

to

$emailTo = $_COOKIE['distributor_email']!='' ? $_COOKIE['distributor_email'] : $data['email_address'];