Jump to content
xisto Community

maria_ian21

Members
  • Content Count

    3
  • Joined

  • Last visited

  1. Notice from cmatcmextra: Added code tags in BUT not accepting as we already have a mail tut. Pming user regrading code tags, credits have not been reduced.... First to send a mail with php we need to design an html form eg <form action="mailsend.php" method="post" enctype="application/x-www-form-urlencoded" name="form1"> <table width="75%" border="0"> <tr> <td><strong><font size="4">Subject</font></strong></td> <td><input name="subject" type="text" id="subject" size="60"></td> </tr> <tr> <td><strong><font size="4">From</font></strong></td> <td><input name="from" type="text" id="from" size="60"></td> </tr> <tr> <td><font size="4"><strong>From Email</strong></font></td> <td><input name="textfield" type="text" size="60"></td> </tr> <tr> <td><strong><font size="4">Body</font></strong></td> <td> </td> </tr> <tr> <td> </td> <td><textarea name="msg" cols="80" rows="20" id="textarea"></textarea></td> </tr> <tr> <td><input type="submit" name="Submit" value="Submit"></td> <td><input name="hiddenField" type="hidden" value="<?usr=$_POST[usr]?>"></td> </tr> </table> </form> secondly we will create the php code to collect the information and send it the mail function is php is mail() and inside we can put in variables containing the information we want to send for instance we want to send a mail to someone@somewhere.com with alll info we collected from the form above included we will write a php code like this //this will contain the email address of the reciepient$to=fgets("someone@somewhere.com"); //our subject the $_POST tells the script to get the information from the form $subject=$_POST[subject];//our message $msg=$_POST[message];// our headres this is usually written this way so as to get the international standar format. $msgheaders="from:$_POST[from]\n"; $msgheaders.="<$_POST[email]>\n"; if( mail($to,$subject,$msg,msgheaders)){ print ("your mail was sucessfullysen to $to");}else print "unable to send mail to $to"; there hope you will like it
  2. I Love using wise ftp, wis e ftp is avery good ftp and i fell very comfortable using it. One of the major reason why i like wise ftp is because it automatically reconnects when the server times out.The GUI was built in a very simple way that allows we the user to easily navigate round the softwareAlso i love using it because of the connection speed as it connects very fast
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.