Question about simple PHP form.

theNEOone

Diamond Member
Apr 22, 2001
5,745
4
81
I've been working with another member of this board who has graciously volunteered his time to add a Player Registration form to my website.

Everything works beautifully except that the confirmation e-mail that is sent to the registrant is from "Nobody [nobody@venus.addaction.net]" I would like this email to be from "Dodgeball Miami [dodgeballmiami@gordiflan.com]"

Also, does anyone know how to format this confirmation email so that it is in html? I want email links in the email to be clickable.

Thank you!!


=|
 

RSMemphis

Golden Member
Oct 6, 2001
1,521
0
0
In the string where you define all the headers, you have to set both:
Return-Path: Dodgeball Miami <dodgeballmiami@gordiflan.com>
and
From: Dodgeball Miami <dodgeballmiami@gordiflan.com>

To make it HTML, you also put into the header string:
Content-type: text/html;

If this is a bit much for right now, post the the script that sends the confirmation email and I can tell you where to put the stuff...
 

theNEOone

Diamond Member
Apr 22, 2001
5,745
4
81
Nice, thanks so much! I'll pass on the information and give it a shot. If all else fails, I'll post the script. :D

You guys are awesome.


=|
 

SaturnX

Diamond Member
Jul 16, 2000
3,415
0
76
Just something to be aware of, with any form submittals that do emailing, you should account for Form Injection. Essientialy a spammer could effectively use your form (thus your server) to send out spam by only adding just a little bit of code. There's a whole slew of information on php.net

--Mark