- This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi all
Im quite new at php but Ive downloaded the nice and easy contact form, which looks great on my website, however am a bit confused as to what needs to be placed in here??
($EmailFrom = “”;)
when i first opened the contactengine.php file up it had a proper email address in there.
Shouldn’t the other parties email address be showing in here??
As this next bit should have my email address in.
($EmailTo = “[email protected]”;)
but what is supposed to go in here? ($EmailFrom = “”;)
Cheers
Shouldn’t the other parties email address be showing in here??
Not necessarily. $EmailFrom
is meant to be an email address from your domain (even a fake, “no-reply” address). It is being used in the email From
header, which has two major implications if using the user’s email address:
filter_var
function.You would need to add a Sender
header with an email address that belongs to your domain. Otherwise, it is likely that the email will be discarded as spam during delivery, because the From
address and the domain don’t match.
All in all, I would suggest not making these changes: just use the form as intended. If you’re set on it, however, you’d need to keep the above points in mind.