Web Development

General discussion


looking for a script

By evmafau ·
I'm setting up a form on a site that gathers info from the user and sends that to an email account. The email account is setup with an autorepsonse that should be sent to the user. However, because the form is sent by the host, the autoresponse goes to the host and not the user.

Does anyone know of a script that would take the user's email address from the submission form and either replace the "from" on the email to the user's instead of the host's or to automatically send an email from the user account to our autoresponse account?


This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

You should be able to set the "from" field

by bschaettle In reply to looking for a script

You said: "the form is sent by the host"

I assume you're processing the form with some kind of script that generates and sends the email message. Whatever mail package the script is using should allow you to manipulate the "From" field on the email message. Check the documentation.

Collapse -

Beware form mail spam injection

by POBeirne In reply to You should be able to set ...

My site got hit with the attack described here:


Use the methods indicated to remove newlines from ALL the form variables.

Collapse -

by evmafau In reply to You should be able to set ...

We're being hosted by GoDaddy.com. Problem that we initially had when the developer wrote the code for the site was that GoDaddy would only accept it's form and we can't figure out how to modify it. GoDaddy won't tell us how to do it, but have said there is a way to do it.

Related Discussions

Related Forums