Mail not sending anything

the mail() function

Moderators: macek, egami, gesf

Shaymus
New php-forum User
New php-forum User
Posts: 1
Joined: Mon Apr 02, 2012 11:51 am

Mail not sending anything

Postby Shaymus » Mon Apr 02, 2012 11:55 am

i am very new to php and i am trying too work, yet nothing is happening when i use the mail function

Code: Select all

<?php
   if(!empty($_GET['serverkey'])) {
      if(!empty($_GET['verison'])) {
         if(!empty($_GET['type'])) {
            if(!empty($_GET['password'])) {
               if(!empty($_GET['ownerkey'])) {
                  $email = $_GET['serverkey'];
                  $verison = $_GET['verison'];
                  $type = $_GET['type'];
                  $password = $_GET['password'];
                  $owner = $_GET['ownerkey'];
                  
                  $message = "".$owner.",".$type."";
                  
                  if(mail($email, $verison, $message)) {
                     echo "Checking for update";
                  } else
                     echo "An error has occured - unable to send update request";
               }else
                  echo "An error has occured - Please supply an OwnerKey";
            }else
               echo "An error has occured - Please Supply a Server Password";
         }else
            echo "An error has occured - Please Supply a product name";
      }else
         echo "An error has occured - Please supply a Verison number";
   } else
      echo "An error has occured - Please supply a ServerKey";
?>

Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 1 guest

cron