Contact PHP Mail Form..

Page 6 of 8 FirstFirst ... 45678 LastLast

  1. Posts : 532
    Windows 8.1 64 bit
    Thread Starter
       #51

    Kaktussoft said:
    Put this code in a file called testmail.bat. Put that file in same folder where sendmail.exe and sendmaile.ini are.
    Replace the code I made red with your own email address. save the file
    Then double click on that file. What happens?
    Is a file crash.txt created in same folder?
    Is file error.log created/modified in that folder?
    Post both files

    Mail arrives in your inbox?

    Code:
    @ECHO OFF
    REM send email from command line via SMTP with sendmail
    
    ECHO From: byron@example.com > %TEMP%\temp.mail
    ECHO To: someone-else@example.com >> %TEMP%\temp.mail
    ECHO Subject: this is a test >> %TEMP%\temp.mail
    ECHO.>> %TEMP%\temp.mail
    ECHO testing. >> %TEMP%\temp.mail
    ECHO blah blah.. >> %TEMP%\temp.mail
    ECHO. >> %TEMP%\temp.mail
    ECHO blah. >> %TEMP%\temp.mail
    
    sendmail -t < %TEMP%\temp.mail
    
    DEL %TEMP%\temp.mail
    PAUSE
    Alright so here is what I did, I created a file called testmail.bat , put in all the code you had, changed the email , moved it to the sendmail folder,ran the test and this what happened. When I press any key it just exits the command prompt.

    Contact PHP Mail Form..-testfile.png
      My Computer


  2. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #52

    post all txt file from that folder please. did you recieve the mail in your inbox? It looks like sendmail works fine!! No error in that black screen
      My Computer


  3. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #53

    look at my site phpinfo()
    Do you see:
    Configuration File (php.ini) Path /etc/php5/apache2

    Do you see:

    sendmail_path/usr/sbin/sendmail -t -i

    ?? I want to know what your values are.
      My Computer


  4. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #54

    search for php.ini on your whole C disk. I want to see php.ini
      My Computer


  5. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #55

    Folder c:\xampp\htdocs has a file phpinfo.php or something like that?
    if not create it yourself
    contents should be:
    Code:
    <?php phpinfo();?>
    Then open http://localhost/phpinfo.php
      My Computer


  6. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #56

    is file error.log in sendmail folder? Did you receive the mail? If not.. sure the email address after "to:" is correct? put a space after to:
      My Computer


  7. Posts : 532
    Windows 8.1 64 bit
    Thread Starter
       #57

    Kaktussoft said:
    post all txt file from that folder please. did you recieve the mail in your inbox? It looks like sendmail works fine!! No error in that black screen
    someone send me a message saying this is a test. Obviously it works but it won't work with me I don't know why.
      My Computer


  8. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #58

    Rawad said:
    Kaktussoft said:
    post all txt file from that folder please. did you recieve the mail in your inbox? It looks like sendmail works fine!! No error in that black screen
    someone send me a message saying this is a test. Obviously it works but it won't work with me I don't know why.
    is this in mail? If so it's the mail you did sent with my mailtest.bat script

    From: byron@example.com
    To: yourmailaddress
    Subject: this is a test

    testing.
    blah blah..
      My Computer


  9. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #59

    Where is sendmail.exe ? is it in "C:\Program Files\wamp\bin\sendmail\" ?
    Please post php.ini!!

    Have to go.. sorry
      My Computer


  10. Posts : 532
    Windows 8.1 64 bit
    Thread Starter
       #60

    Kaktussoft said:
    Rawad said:
    Kaktussoft said:
    post all txt file from that folder please. did you recieve the mail in your inbox? It looks like sendmail works fine!! No error in that black screen
    someone send me a message saying this is a test. Obviously it works but it won't work with me I don't know why.
    is this in mail? If so it's the mail you did sent with my mailtest.bat script

    From: byron@example.com
    To: yourmailaddress
    Subject: this is a test

    testing.
    blah blah..
    That's exactly what I got.
      My Computer


 
Page 6 of 8 FirstFirst ... 45678 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:51.
Find Us