Click here to Skip to main content
15,887,477 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
SuggestionRe: Linux GUI Programming Pin
ashkil26-Oct-11 7:36
ashkil26-Oct-11 7:36 
AnswerRe: Linux GUI Programming Pin
Richard MacCutchan9-Sep-11 23:04
mveRichard MacCutchan9-Sep-11 23:04 
AnswerRe: Linux GUI Programming Pin
Member 785193010-Sep-11 13:54
Member 785193010-Sep-11 13:54 
AnswerRe: Linux GUI Programming [modified] Pin
N a v a n e e t h7-Oct-11 1:00
N a v a n e e t h7-Oct-11 1:00 
AnswerRe: Linux GUI Programming [modified] Pin
elgaabeb12-Dec-11 22:03
elgaabeb12-Dec-11 22:03 
Questionhelp with php [modified] Pin
spawn20041-Sep-11 7:38
spawn20041-Sep-11 7:38 
AnswerRe: help with php Pin
Member 82165606-Sep-11 5:42
Member 82165606-Sep-11 5:42 
QuestionContact form Pin
starr00730-Aug-11 17:03
starr00730-Aug-11 17:03 
Currently I am hosting a clients webpage on the free plan of Mezoka. They allow php 5, but not phpmail (), is there a way of that I can let users email the client at their Gmail account through the website? I read on the Mezoka forum that you could use Gmail as am smtp. I've included my php and html form. I've had a few people tell me about php mailers and php mailer class. Not too sure how to go about implementing the contact form. What I did and thought would work, doesnt, I keep getting the error message that I have in my php. I've tried using Gmail which is where the client has their email account with and my personal yahoo address, and error messages.

HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Contact</title>
</head>

<body>
";	$to = "starr@yahoo.com";   
		$from    = " <no-reply@sitename.info >";
		$headers = "MIME-Version: 1.0\r\n";
		$headers.= "Content-type: text/html; charset=iso-8859-1\r\n";
		$headers.= "From: $from\r\n";
		$mail_body = "Hello World";

		if (mail($to,"Mail", $mail_body,$headers))
		{	echo " Thank you! - Your feedback has been sent! ";	}
		else
		{	echo " Thank you! - We could not send email. Please try later! ";	}


?>


?>


</body>

</html>



HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Contact</title>
<link href="style.css" rel="stylesheet" type="text/css" />

</head>
<body>

<div id="templatemo_wrapper"> 

	<div id="templatemo_header">

 
        
        <ul id="social_box">
                    <li><a href="http://www.facebook.com/"><img src="images/facebook.png" alt="facebook" /></a></li>
            <li><a href="http://www.twitter.com/"><img src="images/twitter.png" alt="twitter" /></a></li>              
        </ul>
        
      	<div id="site_title">
            <h1><a href="index.htm"><img src="images/logo2.png" alt="logo" /><span></span></a></h1>
        </div> <!-- end of site_title -->
        
      
    </div> <!-- end of templatemo_header -->
    
<div id="templatemo_menu">
    	<div class="home"><a href="index.htm"></a></div>
        <ul>
          <li><a href="index.htm"><span>Home</span></a></li>
            <li><a href="test.htm"><span>Test</span></a></li>
            <li><a href="examples.htm"><span>Examples</span></a></li>
            <li><a href="question.htm"><span>Questions</span></a></li>
	    <li><a href="contact.htm"><span>Contact</span></a></li>
            <li><a href="comments.htm">Have A Comment?<span>Comments</span></a></li>
        </ul>    	
    </div> 

<!-- end of templatemo_menu -->
    
    <div id="templatemo_content_wrapper">
    	<div id="templatemo_content_top"></div>
        <div id="templatemo_content">
        
            <h2>Contact</h2>


        
            <div class="cleaner_h50"></div>
            
            	<div id="contact_form">
            
                    <h4>Quick Contact</h4>
                    
                    <form method="post" name="contact" action="email.php">
                        
                        <div class="col_w340 float_l">
                        
                            <label for="namer">Name:</label> <input name="name" type="text" class="input_field" id="author" maxlength="40" />
                          	<div class="cleaner_h10"></div>
                            
                            <label for="email">Email:</label> <input name="email" type="text" class="input_field" id="email" maxlength="40" />
                          	<div class="cleaner_h10"></div>
                            
                            
                        </div>
                        
                        <div class="col_w340 float_r">
                        
                            <label for="text">Message:</label> <textarea id="text" name="text" rows="0" cols="0" class="required"></textarea>
                            <div class="cleaner_h10"></div>
                            
                            <input type="submit" class="submit_btn float_l" name="submit" id="submit" value="Send" />
                            <input type="reset" class="submit_btn float_r" name="reset" id="reset" value="Reset" />
                            
                        </div>
                        
                   </form>

            </div> 

            <div class="cleaner"></div>
            
        </div>
        <div id="templatemo_content_bottom"></div>
	</div>
    
    <div id="templatemo_sp_box">
    
    	<div class="col_w340 float_l">
         
			</div>
        </div>
        
        <div class="col_w340 float_r">
        
			</div>
        </div>
    
    </div>
    
    <div id="templatemo_footer">

      
        Copyright © 2011 <a href="www.twitter.com/">Starr</a><br/> 
        <a href="http://www.iwebsitetemplate.com" target="_parent">Website Templates</a> 
        by <a href="http://www.templatemo.com" target="_parent">Free CSS Templates</a>
    
    </div> <!-- end of templatemo_footer -->
    
</div> <!-- end of templatemo_wrapper -->    

</body>
</html>

AnswerRe: Contact form Pin
Evan Gallup3-Sep-11 18:40
Evan Gallup3-Sep-11 18:40 
AnswerRe: Contact form Pin
Vasudevan Deepak Kumar10-Sep-11 12:59
Vasudevan Deepak Kumar10-Sep-11 12:59 
QuestionDebugging django ap with winge ide Pin
CodingYoshi30-Aug-11 12:09
CodingYoshi30-Aug-11 12:09 
AnswerRe: Debugging django ap with winge ide Pin
hlcfan3-Nov-11 23:10
hlcfan3-Nov-11 23:10 
QuestionFind visitor's Internet service provider with PHP Pin
Wasifk00726-Aug-11 23:49
Wasifk00726-Aug-11 23:49 
AnswerRe: Find visitor's Internet service provider with PHP [modified] Pin
Evan Gallup3-Sep-11 18:25
Evan Gallup3-Sep-11 18:25 
GeneralRe: Find visitor's Internet service provider with PHP Pin
Mantenlo33-Sep-11 23:47
Mantenlo33-Sep-11 23:47 
Questionplease helpme Pin
Arunkumar.Koloth26-Aug-11 20:28
Arunkumar.Koloth26-Aug-11 20:28 
AnswerRe: please helpme Pin
Evan Gallup3-Sep-11 18:29
Evan Gallup3-Sep-11 18:29 
QuestionI have a problem now Pin
Arunkumar.Koloth23-Aug-11 21:34
Arunkumar.Koloth23-Aug-11 21:34 
AnswerRe: I have a problem now Pin
Peter_in_278023-Aug-11 21:48
professionalPeter_in_278023-Aug-11 21:48 
GeneralRe: I have a problem now Pin
cjoki24-Aug-11 11:12
cjoki24-Aug-11 11:12 
GeneralRe: I have a problem now Pin
Peter_in_278024-Aug-11 11:34
professionalPeter_in_278024-Aug-11 11:34 
AnswerRe: I have a problem now Pin
yiday22-Sep-11 0:01
yiday22-Sep-11 0:01 
AnswerRe: I have a problem now Pin
arya168515-Oct-11 4:59
arya168515-Oct-11 4:59 
QuestionHow to Disable Parent Page in Wordpress? Pin
Noman Rasheed17-Aug-11 8:22
Noman Rasheed17-Aug-11 8:22 
QuestionHTTP Error 411. The request must be chunked or have a content length. Pin
PHP Rocks16-Aug-11 3:11
PHP Rocks16-Aug-11 3:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.