  | 
              
	              
	                
  
    
	 
        ส่ง email error ครับ แก้ยังไงดี ผมลองดูตามที่ ทางเว็บสอนแล้วทำไม่ได้อ่ะครับ     | 
   
  
    |   | 
   
 
 
 
              
  
          
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 From: ไม่มี  
 
มันก็บอกอยู่ใน error นะครับถ้าเอาไปแปลสักหน่อยก็รู้แล้ว 
 
และอีกอย่าง ควร copy code มาแปะไม่ใช่แปะเป็นภาพนะครับ                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2018-02-03 10:18:14 | 
                        By :
                            mr.v | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 อันนี้เป็น โค๊ดของหน้านี้ครับ 
 
 
Code (PHP) 
<meta charset="UTF-8" />
<?php require_once('../../Connections/con_shop.php'); ?>
<?php @session_start(); ?>
<!------------------------------------------------------------------------------------------------------------------------------->
<?php
//--------------------------------------------------------------------------------------------------------------------------------
$wu_shopname = $_POST['txt_wu_shopname'];
$wu_name = $_POST['txt_wu_name'];
$wu_username = $_POST['txt_wu_username'];
$wu_password = md5($_POST['txt_wu_password']);
$wu_email = $_POST['txt_wu_email'];
$wu_phone = $_POST['txt_wu_phone'];
$wu_address = $_POST['txt_wu_address'];
//--------------------------------------------------------------------------------------------------------------------------------
		$sql = "
		INSERT INTO web_user
		(wu_shopname, wu_name, wu_username, wu_password, wu_email, wu_phone, wu_address, wu_active, wu_detail)
		VALUES
		('$wu_shopname', '$wu_name', '$wu_username', '$wu_password', '$wu_email', '$wu_phone', '$wu_address', 'no', '')
		";
	$result = mysql_db_query($database_shop, $sql) or die("Error in query : $sql" .mysql_error());
//--------------------------------------------------------------------------------------------------------------------------------
			$Uid = mysql_insert_id();
		echo "Register Completed!<br>Please check your email to activate account";		
		$strTo = $_POST['txt_wu_email'];
		$strSubject = "Activate Member Account";
		$strHeader = "Content-type: text/html; charset=UTF-8"; // or UTF-8 //
		$strHeader .= "From: shopmanagement <[email protected]>";
		$strMessage = "";
		$strMessage .= "Welcome : ".$_POST["txt_wu_name"]."<br>";
		$strMessage .= "=================================<br>";
		$strMessage .= "Activate account click here.<br>";
		$strMessage .= "../../activate.php?sid=".session_id()."&uid=".$Uid."<br>";
		$strMessage .= "=================================<br>";
		$strMessage .= "ThaiCreate.Com<br>";
		$flgSend = mail($strTo,$strSubject,$strMessage,$strHeader); 
		
		if($flgSend)
	{
		echo "Email Sending.";
	}
	else
	{
		echo "Email Can Not Send.";
	}
		mysql_close();
?>
                        
               
               | 
             
            
              
			                
  ประวัติการแก้ไข 2018-02-03 10:23:49 2018-02-03 10:24:47              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2018-02-03 10:23:09 | 
                        By :
                            Jump11 | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	     
	    
     
               
		
     
		
	     
	    
     
               
		
     
		
	     
	    
     
               
		
     
		
	     
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 แจกฟรี Script ส่งอีเมล์แบบ SMTP / POP ของ PHP ที่สามารถใช้งานได้จริง ๆ 
 
 
                         
               
               | 
             
            
              
			  			  
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2018-02-03 19:03:57 | 
                        By :
                            mr.win | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
               
		
     
		
	     
	    
     
               
		
     
		
	  
        
             | 
            | 
            | 
             | 
         
        
             | 
                       | 
          
            
               
                 path ไม่ถูกก็เช็คให้ถูกสิครับ เอาไว้ตรงไหนยังไงคุณไม่เอาตำแหน่งมาจะมีใครเดาให้ได้ล่ะครับ? 
คุณใช้ __DIR__, dirname() เป็นไหม? ถ้าเป็นก็เอาพวกนี้ไปไล่ดูอะครับว่าจากไฟล์ที่เรียกใช้งานมันควรจะไปยังไงชื่อไฟล์อะไรตรวจให้ถูกมันไม่ยากนะ                        
               
               | 
             
            
              
			                              
                              
              
                
                     | 
                     | 
                     | 
                 
                
                     | 
                  
                      
                        | Date :
                            2018-02-03 22:25:00 | 
                        By :
                            mr.v | 
                         
                    | 
                     | 
                 
                
                     | 
                     | 
                     | 
                 
                | 
             
           
			         | 
             | 
         
        
             | 
            | 
             | 
             | 
         
          
	    
     
      		  
	
     | 
   
 
                 |