php - Mailbox in website -


i have "contact us" form in website mailto: function. mail goes yahoo account. want implement mailbox in website such can receive mail directly admin page , reply or delete them accordingly.

how can that?

i have template need explanation on functions , dynamic content implemented.

enter image description here

this sample of code .. have change variable name here ..

$sql = "select * request user_id='$user'";  $result = $conn->query($sql);  $sr=1;  if ($result->num_rows > 0) {      // output data of each row      while($row = $result->fetch_assoc()) {          $sender_id=$row["sender_id"];          $receiver_id=$row["receiver_id"];          $req=$row['req_id'];          $stat=$row['status'];          if($stat==0){              $status="pending...";          }          elseif ($stat==1) {               $status="accepted.";          }          elseif ($stat==2) {              $status="rejected.";          }          $sql1 = "select * usertable1 id='$sender_id' ";          $result1 = $conn->query($sql1);          if ($result1->num_rows > 0) {              // output data of each row              while($row1 = $result1->fetch_assoc()) {                  $username=$row1['user_name'];                  $email=$row1['email'];              }          }          $sql2 = "select *  usertable2 id='$receiver_id' ";          $result2 = $conn->query($sql2);          if ($result2->num_rows > 0) {              // output data of each row              while($row2 = $result2->fetch_assoc()) {                  $source=$row2['source'];                  $destination=$row2['destination'];              }          }

you idea can implement per requirement.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -