I am using a form to submit an email to the end user. Since I have set up my site as a theme, i want to use a string to hold the email for the site. This can then be used in the footer, and to send emails.
So I have set up a string $site_email = get_option(‘site_email’); where ‘site_email’ is an option in a plugin I have created called Theme options. You use it to enter various data to the database: address, google mail map html data, and email.
Ok, so if I echo the string $site_email, throughout the website, it works fine. And even if I echo it on the form, it works fine, but when i use the string in wp_mail() like this:
I don’t know anything about wp_mail, but maybe it is only meant to pick up on variables that are set on the page itself. So I would try something like this: