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 9126497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:03:25+00:00 2026-06-17T07:03:25+00:00

I’ve tried searching for an answer here and on the web and I might

  • 0

I’ve tried searching for an answer here and on the web and I might be just missing something tiny here.

I got a website hoted (not wamp or anything).
I’ve written very simple email function to send also an attachment.
for some reason I got no errors and no results.

here is the PHP

    if(isset($_POST['Submit'])){
        $strTo = "my@mail.com";  
        $strSubject = "Purchase request from " . $_POST["formName"] . $_POST["formSurname"];  
        $strMessage = nl2br($_POST["formName"] . $_POST["formEmail"] . $_POST["formInstitute"] . $_POST["formCourse"] . $_POST["formNotes"]);  

        //*** Uniqid Session ***//  
        $strSid = md5(uniqid(time()));  

        $strHeader = "";  
        $strHeader .= "From: ".$_POST["formEmail"]."<".$_POST["formEmail"].">\nReply-To: ".$_POST["formEmail"]."";  

        $strHeader .= "MIME-Version: 1.0\n";  
        $strHeader .= "Content-Type: multipart/mixed; boundary=\"".$strSid."\"\n\n";  
        $strHeader .= "This is a multi-part message in MIME format.\n";  

        $strHeader .= "--".$strSid."\n";  
        $strHeader .= "Content-type: text/html; charset=utf-8\n";  
        $strHeader .= "Content-Transfer-Encoding: 7bit\n\n";  
        $strHeader .= $strMessage."\n\n";  

        //*** Attachment ***//  
        if($_FILES["fileAttach"]["name"] != "")  
        {  
            $strFilesName = $_FILES["fileAttach"]["name"];  
            $strContent = chunk_split(base64_encode(file_get_contents($_FILES["fileAttach"]["tmp_name"])));  
            $strHeader .= "--".$strSid."\n";  
            $strHeader .= "Content-Type: application/octet-stream; name=\"".$strFilesName."\"\n";  
            $strHeader .= "Content-Transfer-Encoding: base64\n";  
            $strHeader .= "Content-Disposition: attachment; filename=\"".$strFilesName."\"\n\n";  
            $strHeader .= $strContent."\n\n";  
        }  

        $flgSend = mail($strTo,$strSubject,$strMessage,$strHeader);  // @ = No Show Error //  

        if($flgSend)
        {  
            echo "<p>works</p>";  
        }  
        else  
        {  
            echo "<p>not working</p>";  
        }  
    }
    ?>

the form is on different page:

<form action="#!/studentform.2ndpahse" method="post" name="form1" enctype="multipart/form-data">  
            <table width="500">  
            <tr>  
                <td>שם פרטי: </td>  
                <td><input name="formName" type="text" id="name"></td>  
            </tr>  
            <tr>  
                <td>שם משפחה: </td>  
                <td><input name="formSurname" type="text" id="surname"></td>  
            </tr>  
            <tr>  
                <td>דואר אלקטרוני: </td>  
                <td><input name="formEmail" type="text"></td>  
            </tr>  
            <tr>  
                <td>מוסד אקדמי: </td>  
                <td><input name="formInstitute" type="text"></td>  
            </tr>  
                <td>מסלול: </td>  
                <td><input name="formCourse" type="text"></td>  
            </tr> 
            <tr>  
                <td>הערות</td>  
                <td><textarea name="formNotes" cols="30" rows="4" id="formNotes"></textarea></td>  
            </tr>  
            <tr>  
                <td>Attachment</td>  
                <td><input name="fileAttach" type="file"></td>  
            </tr>  
            <tr>  
                <td>&nbsp;</td>  
                <td><input type="submit" name="Submit" value="שלח"></td>  
            </tr>  
            </table>  
        </form>  

Will appriciate any assistance given

  • 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-17T07:03:26+00:00Added an answer on June 17, 2026 at 7:03 am

    It was a hosting issue eventually and solved by them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I used javascript for loading a picture on my website depending on which small
I've got a string that has curly quotes in it. I'd like to replace
I'm interested in microtypography issues on the web. I want a tool to fix:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
i got an object with contents of html markup in it, for example: string

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.