FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

form mail problems (quality help=frih$)

 


bassgs_17
I am in charge of creating an online submission form for the school litmag, and need some help getting the contents of the form mailed. I have the form set up how I want it, and have the form set up use the "mailto:" action, but all it does is bring up the user's default mail client, and not send rhe message directly. Do I need a seperate mail script, or can I get away without one? And if I need a script, I would appreciate some pointers. (quality help=frih$)
aningbo
DELETED

Last edited by aningbo on Wed Sep 27, 2006 10:22 am; edited 1 time in total
htmlrules
this is a script that i descorvered in mailingn in php
Code:
   require("c:\php\includes\class.phpmailer.php");

   $mail = new PHPMailer();
   
   $mail->IsSMTP();
   $mail->Host = "POP3 email address";
   $mail->SMTPAuth = true;
   $mail->Username = "Email username";
   $mail->Password = "Email Password";   
   $mail->From = "who its from";
   $mail->FromName = " ";
   $mail->AddAddress("address from who its from");
   $mail->IsHTML(true);
   $mail->Subject = "subject";
   $mail->Body = "body content";
   $mail->Send();


hope that helps
bassgs_17
Yeah... I'll admit, I'm not new to html, but I'm still a noob when it comes to php and forms... Still fuzzy. I know that I need to call a script from the form, but the customization of the script to reflect the fields in my form is where I get stuck. This form is due tommorow!...

-Aquastrike
aningbo
just copy and past my codes.... its should work 100%
hexkid
bassgs_17 wrote:
I need some help getting the contents of the form mailed. I have the form set up how I want it, and have the form set up use the "mailto:" action, but all it does is bring up the user's default mail client, and not send rhe message directly. Do I need a seperate mail script, or can I get away without one? And if I need a script, I would appreciate some pointers.


Yes, you need a script on the server (or a compiled program, or equivalent) to process the form and mail it. There is no way to force a mail to be sent with Html, CSS and Javascript. Try the Php and mySQL or the Others forums.
aningbo
does he ever bother to check this forum and say thanx atleast Very Happy
simplyw00x
Clearly not Rolling Eyes
bassgs_17
Sorry, I've been away. Thank you; I chose PHPFMG for my form; thanks guys.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.