Click to See Complete Forum and Search --> : Webform to Email
gergl
05-05-2005, 04:05 AM
Hi board,
i'm trying to get a webform i've created, to send all the info the user has entered to my email box.
any idea how i would go about doing this?
cheers in advance!
scragar
05-05-2005, 04:11 AM
you can have them mail it to you if you want it to only work on IE with windows.
or you can redirect your form to a free mail sending services.
gergl
05-05-2005, 04:18 AM
i've got a firm idea of how i want this to work, i'm just not sure of the automation behind it.
basically when the user fills in the form, they will click a submit button, the info will then be taken from the form and emailed to a mailbox.
i need it to go to a mailbox for the reason, the request made by the initial user will go on to another source, if the info is already in an email, it makes life easier for the people who have to deal with it.
as this is going to be quite an important function of this site, i can't use a third party system, the page has to do all the work itself.
so my question is, how do i send info from a form to a mailbox, with as little effort as possible?
scragar
05-05-2005, 04:20 AM
for it to be valid in all browsers you'll need a serverside language.
for it to be valid only in IE on windows use mailto:me@mysite.com as the action of the form.
yeahbutno
05-05-2005, 09:38 AM
Hi Gergl. Did you have any joy on this? I'm trying to do the same thing.
scragar
05-05-2005, 09:40 AM
if your making a maillist then I made one back here (http://www.webdeveloper.com/forum/showthread.php?t=64301)
gergl
05-05-2005, 09:41 AM
its been suggested that i try using a php form to mail function, i'm going to be working on it this eve so i'd be happy to pass on what i manage to create!
cjc1055
05-05-2005, 09:45 AM
I went through this same thing last week and had a hard time getting answers... so I'm gonna try to help now that I have mine working. I tried all sorts of things, and the one that worked best for me was ASPmail.
What I did was download that (found it by doing a search on yahoo) and installed it. It shuts down the iis installs and restarts it and your mail client is then active. Then you just program the ASP page with your form in it.
For example....
<%
strHost = "mail.yourserverhere.com"
If Request("Send") <> "" Then
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = strHost
Mail.From = "youremail"
Mail.FromName = "yourname"
Mail.AddAddress "thetoaddress", "thetoname"
Mail.Subject = Request("Subject")
Mail.Body = Request("Body")
strErr = ""
bSuccess = False
On Error Resume Next
Mail.Send
If Err <> 0 Then
strErr = Err.Description
else
bSuccess = True
Response.redirect("http://www.site.com/thankyou.htm")
End If
End If
%>
<HTML>
put your form here and for the action.. put whatever you named this file
</HTML>
you have to name this file with a .asp extention
let me know if this helps, and if i could help any more
gergl
05-05-2005, 10:26 AM
probably not the best section to question this but you never know!
i've created a bit of javascript that allows a user to choose a company name in one box and updates that companies id in the next box, will i be able to use this in a php input box?
rhsunderground
05-05-2005, 03:25 PM
the best form mailer i've seen is the one made by pryo: http://www.webdevfaqs.com/php.php