Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8533145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:53:30+00:00 2026-06-11T09:53:30+00:00

I am no expert in coding with php and I am having problems with

  • 0

I am no expert in coding with php and I am having problems with my E-mail.

The problem is this: I am seeing Mime Version an Content-Type appearing inside my email body.
So how can I avoid showing this inside my mail body? THX guys!!

My mail looks like this:

MIME-Version: 1.0   <–want to HIDE THIS!!

Content-Type: text/html; charset=UTF-8  <–and hide THIS!!

From:Some name

Email: some.mail@yahoo.com

message:
some message

My code:

 if (!$errors) { 
            $user = $_POST['email'];

            $mail = 'dejo.dekic@yahoo.com';  //send mail to me
            $subject = 'Kontakt';  
            $tema = 'Info';
            $headers  = 'MIME-Version: 1.0' . "\r\n";
            $headers .= 'Content-Type: text/html; charset=UTF-8' . "\r\n";
            $headers .= 'From: ' . $_POST['name'] . "\n"; 
            $headers .= 'Email: ' . $_POST['email'] . "\n";  
            $headers .= "Message:\n" . $_POST['message'] . "\n\n"; 
            $add_headers = 'From: mail@robertpeic.com' . "\r\n". "Return-path: mail@robertpeic.com" . "\r\n";



            $poruka ='Vaš kontakt je uspjesno zaprimljen! Odgovorit ću vam u najkraćem mogućem roku. Hvala! Molimo ne odgovarajte na ovu poruku. Ova poruka je automatska.';
            mail($mail, $subject, $headers, $add_headers, "-fmail@robertpeic.com");  
            mail($user, $tema, $poruka, $add_headers, "-fmail@robertpeic.com"); 

            echo "<div class='hvala' style='color:white;margin:0px auto;padding-top:20px;width:290px;background-color:white;font-weight:bold;text-align:center;'><p>Hvala Vam na kontaktu!</p></div>";


        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T09:53:31+00:00Added an answer on June 11, 2026 at 9:53 am

    Try below code:

    // multiple recipients
    $user = $_POST['email'];
    $mail = 'dejo.dekic@yahoo.com';  //send mail to me
    $subject = 'Kontakt';  
    $tema = 'Info';
    
    // message
    $message = '
      <table>
        <tr>
          <td>From: </td><td>'.$_POST['name'] .'</td>
        </tr>
        <tr>
          <td>Email: </td><td>'.$_POST['email'].'</td>
        </tr>
        <tr>
          <td>Message: </td><td>'.$_POST['message'].'</td>
        </tr>
      </table>
    ';
    
    // To send HTML mail, the Content-type header must be set
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    
    // Additional headers
    $headers .= 'From: '.$_POST['name'].' <mail@robertpeic.com>' . "\r\n";
    
    // Mail it
    $poruka ='Vaš kontakt je uspjesno zaprimljen! Odgovorit cu vam u najkracem mogucem roku. Hvala! Molimo ne odgovarajte na ovu poruku. Ova poruka je automatska.';
    mail($mail, $subject, $message, $headers, "-fmail@robertpeic.com");
    mail($user, $tema, $poruka, $headers, "-fmail@robertpeic.com");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am not an expert in Git, but I have seen this done before
I've been coding php for years, and now i have to finally make my
After finishing, the website structure, and php coding, now i want to launch it
I was wondering what is better or more accepted when coding in PHP. I
I've been coding in PHP for 4 years and even I find it so
In zend framework I register my namespace like this (in application.php): 'autoloaderNamespaces' => array(
I am used to coding in PHP but I am not really proficient with
Can any expert here please point me to some valid walkthrough on how to
I'm no expert in parallel programming. But I'm curious if I can use them
If not an expert programer I am at least familiar with the basic steps

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.