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$)
form mail problems (quality help=frih$)
DELETED
Last edited by aningbo on Wed Sep 27, 2006 10:22 am; edited 1 time in total
Last edited by aningbo on Wed Sep 27, 2006 10:22 am; edited 1 time in total
this is a script that i descorvered in mailingn in php
hope that helps
| 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
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
-Aquastrike
just copy and past my codes.... its should work 100%
| 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.
does he ever bother to check this forum and say thanx atleast 
Clearly not 
Sorry, I've been away. Thank you; I chose PHPFMG for my form; thanks guys.
