HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - Linux
 - >
 - PHP & email
 
Operating System - Linux
        1840182
        Members
    
    
        2643
        Online
    
    
        110162
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
 - Entry Storage Systems
 - Legacy
 - Midrange and Enterprise Storage
 - Storage Networking
 - HPE Nimble Storage
 
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
 - Appliance Servers
 - Alpha Servers
 - BackOffice Products
 - Internet Products
 - HPE 9000 and HPE e3000 Servers
 - Networking
 - Netservers
 - Secure OS Software for Linux
 - Server Management (Insight Manager 7)
 - Windows Server 2003
 - Operating System - Tru64 Unix
 - ProLiant Deployment and Provisioning
 - Linux-Based Community / Regional
 - Microsoft System Center Integration
 
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
 - Mark Topic as New
 - Mark Topic as Read
 - Float this Topic for Current User
 - Bookmark
 - Subscribe
 - Printer Friendly Page
 
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
04-30-2002 09:33 AM
04-30-2002 09:33 AM
			
				
					
						
							PHP & email
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						I want to ask the question about sending email in php.
But it does not function well
and display the error:
Warning: mail() is not supported in this PHP build in /usr/local/apache_1.3.22/htdocs/interface/mailtest.php on line 13
Is it there is something command I need to set?? Then I don't know what is the command and where to carry out??
and is it if i want to use php code to send email, is it just simply write down the following code:
mail("email@address", "Subject", "content");
?>
then when the user access those php will automatically send email????
Thanks a lot
		
		
	
	
	
But it does not function well
and display the error:
Warning: mail() is not supported in this PHP build in /usr/local/apache_1.3.22/htdocs/interface/mailtest.php on line 13
Is it there is something command I need to set?? Then I don't know what is the command and where to carry out??
and is it if i want to use php code to send email, is it just simply write down the following code:
mail("email@address", "Subject", "content");
?>
then when the user access those php will automatically send email????
Thanks a lot
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
04-30-2002 12:01 PM
04-30-2002 12:01 PM
			
				
					
						
							Re: PHP & email
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						What version of PHP are you running?  The example line seems to work fine on my box running PHP/4.0.4.  
Maybe you should just try upgrading.
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
Maybe you should just try upgrading.
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-01-2002 04:19 PM
05-01-2002 04:19 PM
			
				
					
						
							Re: PHP & email
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Most of the mail configuration is done in the php.ini file.  Depending on your platform, you may have the path to sendmail wrong or smtp problems.  It's all under the '[mail function]' block in the php.ini file.  I know that the "sendmail_from=" parameter in this block gave me trouble in the past.  SMTP servers don't like to forward mail from 'me@localhost.com', or at least they shouldn't, but that's a different topic...
I hope this helps, and don't forget about points...
~Chris
		
		
	
	
	
I hope this helps, and don't forget about points...
~Chris
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
05-02-2002 06:55 AM
05-02-2002 06:55 AM
			
				
					
						
							Re: PHP & email
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						but I cannot find the php.ini in the server
and I just find only php.ini-dist and php.ini-optimized
And then what should I do??
		
		
	
	
	
and I just find only php.ini-dist and php.ini-optimized
And then what should I do??
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP