tryed this to send myself an email

index.php

[php]

<?php include "process.php"; ini_set('error_reporting', E_ALL); ini_set('display_errors', '1'); ?> Form Sample <?php if (isset($msg)) { echo '

', $msg , '

'; }?>
  1. Name * <?php if (isset($err_myname)) { echo $err_myname; } ?> <?php if (isset($err_patternmatch)) { echo $err_patternmatch; } ?>
  2. Password <?php if (isset($err_passlength)) { echo $err_passlength; } ?>
  3. Password (confirm) <?php if (isset($err_mypassconf)) { echo $err_mypassconf; } ?>
  4. Favorite Music
    1. /> Rock
    2. /> Classical
    3. /> Reggaeton
  5. How did you hear about us? Choose... >A friend >Facebook >Twitter
  6. Request Type
    1. /> Question
    2. /> Comment
    3. /> Suggestion
  7. Comment: (html is not allowed) <?php if (isset($mycomments)) { echo $mycomments; } ?>
send

[/php]

process.php

[php]

<?php ini_set('error_reporting', E_ALL); ini_set('display_errors', '1'); if (($_SERVER['REQUEST_METHOD'] == 'POST') && (!empty($_POST['action']))): if (isset($_POST['myname'])) { $myname = $_POST['myname']; } if (isset($_POST['mypassword'])) { $mypassword = $_POST['mypassword']; } if (isset($_POST['mypasswordconf'])) { $mypasswordconf = $_POST['mypasswordconf']; } if (isset($_POST['mycomments'])) { $mycomments = filter_var($_POST['mycomments'], FILTER_SANITIZE_STRING ); } if (isset($_POST['reference'])) { $reference = $_POST['reference']; } if (isset($_POST['favoritemusic'])) { $favoritemusic = $_POST['favoritemusic']; } if (isset($_POST['requesttype'])) { $requesttype = $_POST['requesttype']; } $formerrors = false; if ($myname === '') : $err_myname = '
Sorry, your name is a required field
'; endif; // input field empty if (strlen($mypassword) <= 6): $err_passlength = '
Sorry, the password must be at least six characters
'; endif; //password not long enough if ($mypassword !== $mypasswordconf) : $err_mypassconf = '
Sorry, passwords must match
'; endif; //passwords don't match $formdata = array ( 'myname' => $myname, 'mypassword' => $mypassword, 'mypasswordconf' => $mypasswordconf, 'mycomments' => $mycomments, 'reference' => $reference, 'favoritemusic' => $favoritemusic, 'requesttype' => $requesttype ); if ( !(preg_match('/[A-Za-z]+, [A-Za-z]+/', $myname)) ) : $err_patternmatch = '
Sorry, the name must be in the format: Last, First
'; endif; // pattern doesn't match if (!($formerrors)) : $to = "my primary email"; $subject = " From $myname ----- Signup Page"; $message = json_encode($formdata); $replyto = "From: frommysecondaryemail\r\n"; "Reply-To: donotreply@mysecondaryemail"; if (mail($to, $subject, $message)): $msg = "Thanks for filling out our form"; else: $msg = "Problem sending the message"; endif; //mail form data endif; //check for form errors endif; //form submitted ?>

[/php]

tryed numerous times and tryed swaping emails

Could there be restrictions with my ISP and the other email which is outlook

My ISP is SKY.com

Try and start with this in a different page just to be sure theres no problems, also check your junk file start simple and slowly work your way up I do not see any problems that pop out but my suggestion is start simple and then add in extras so you are 100% sure theres nothing blocking it.

[php] $to = “your email”;
$subject = “Test”;
$message = "Test

Thank You";
$from = “Who ever”;
$headers = “From:” . $from;

mail($to,$subject,$message,$headers);

echo “Test has been sent”;
echo “
” ;
echo “Mail Sent.”;
echo “
”;
echo “Back”;[/php]

it does not get there either i place my addy in
clck on the page load

it says message sent but it is not there in my emails

Sponsor our Newsletter | Privacy Policy | Terms of Service