when emailing from a php form using on online web hosting service/site. when the form is completed, does it go to the email@site.domain.com of the web hosting site or does that email given by the web hosting site send it to another email entered into the php code.
I need examples of what to put in two (actually 3) snippets of code: i don't know what to put in because regardless of what i put in, nothing sends.
$owner_email=''; ---is this my person email or the email from the host server
//SMTP server settings
$host = ''; ---is this my serverspace or the server provided by the host?
$port = '465';
$username = ''; ---is this...
$password = ''; ....and this necessary? is it my username on the host site?
$subject='A message from your site visitor ';
$user_email='';
$message_body='';
$message_type='html';
dont know what the previous four lines are for
Next Snippet
if($owner_email=='' || $owner_email==''){
die('insert warning here');
}
---do i have to input the owner email from above in here?
if(preg_match('/^(127\.|192\.168\.)/',$_SERVER["REMOTE_ADDR"])){
die('insert warning here');
}
----Do i have to change anything here especially the "REMOTE_ADDR" Again, these belong to a form but when i fill out the form it says its sent even with reCAPTCHA security but when i check both owner and server emails....nothing. what am i missing.