my email will not process


  <form action="" id="form" method="post" name="form">

<input name="vname" placeholder="your name" type="text" value="">

<input name="vemail" placeholder="your email" type="email" value="">

<input name="sub" placeholder="subject" type="text" value="">

<label>your question or request</label>

<textarea name="msg" placeholder="type text here..."></textarea>

<input id="send" name="submit" type="submit" value="send question">

</form>

<h3><?php include "secure_email_code.php"?></h3>

 

<?php

if(isset($_post[“submit”])){

// checking blank fields..

if($_post[“vname”]==””||$_post[“vemail”]==””||$_post[“msg”]==””){

echo “you forget field”;

}else{

// check if “sender’s email” input field filled out

$email=$_post[‘vemail’];

// sanitize e-mail address

$email =filter_var($email, filter_sanitize_email);

// validate e-mail address

$email= filter_var($email, filter_validate_email);

if (!$email){

echo “invalid email adres”;

}

else{

$to = $_post[‘vname’];

$message = $_post[‘msg’];

$headers = ‘from:’. $email . “\r\n”; // sender’s email

$headers .= ‘cc:’. $email . “\r\n”; // carbon copy sender

// message lines should not exceed 70 characters (php rule), wrap it

$message = wordwrap($message, 70);

// send mail php mail function

mail(your@email.com”, $headers, $message, $to);

echo “thank message, i’ll try respond possible!”;

}

}

}

you can not run php within phonegap app. code not work.



More discussions in PhoneGap


adobe

Comments

Popular posts from this blog

Soustraire une selection

After Effects: could not find dvaeve_dialogs.txt

Illustrator cs6 "Invalid Serial Number"