Home All Groups Group Topic Archive Search About

How to Make a Form Send an Email

Author
6 Nov 2007 2:26 PM
Cliff Seely
Does anyone know how I can make a FrontPage form that includes a field
for email address send an e-mail to the address entered in that field
after they submit the form?

Thanks,
Cliff
Author
6 Nov 2007 3:18 PM
Ronx
Cannot be done using the FrontPage extensions to process the form.  You
will require a server side script written for whatever your host
supports (PHP, asp, asp.NET, etc., with sendmail, jmail, cdosys etc.)

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp




Show quoteHide quote
"Cliff Seely" <cliff.se***@childplus.com> wrote in message
news:1194359160.131784.244870@z9g2000hsf.googlegroups.com:

> Does anyone know how I can make a FrontPage form that includes a field
> for email address send an e-mail to the address entered in that field
> after they submit the form?
>
> Thanks,
> Cliff
Are all your drivers up to date? click for free checkup

Author
7 Nov 2007 3:21 AM
Brutus
This assumes some variables have been passes to the .asp page  This sends 2
email, one to the requestor and one to a processor.

<%
strClientMessage = "Dear " & Rep & vbcrlf&_
"Thank you for your submitting " & Company & "." & vbcrlf&_
"Their Customer Number is: " & OrderNumber & vbcrlf&_
"They have selected the "& FoodBank & " foodbank."

strOriginalMessage = "Dear whoever" & vbcrlf &_
Rep & " has requested to be assigned " & Company & "." & vbcrlf &_
"Please review this and let him know.  The Customer Number is " &
OrderNumber & "."

'  Send Client Message - to the Rep who submitted the order
Set myMail = CreateObject("CDO.Message")

   myMail.Subject ="Customer you submitted"
  myMail.From = "some***@somewhere.com"
   myMail.bcc = ""
  myMail.To = RepEmail
  myMail.TextBody = strClientMessage
  myMail.Send
set myMail=nothing

'  Send original email - to someone
  Set myMail = CreateObject("CDO.Message")
  myMail.Subject = "Food Bank request from rep"
  myMail.From = RepEmail
  myMail.To = "someone@somewhere.comom"
  myMail.bcc = ""
  myMail.TextBody = strOriginalMessage & ""
  myMail.Send
  set myMail = nothing
%>

You can get the basic format from this.  Hope it helps

Dave
http://ccgroup.us

Show quoteHide quote
"Ronx" <ronx***@hotmail.com> wrote in message
news:ueUgRhIIIHA.4732@TK2MSFTNGP05.phx.gbl...
> Cannot be done using the FrontPage extensions to process the form.  You
> will require a server side script written for whatever your host supports
> (PHP, asp, asp.NET, etc., with sendmail, jmail, cdosys etc.)
>
> --
> Ron Symonds - Microsoft MVP (FrontPage)
> Reply only to group - emails will be deleted unread.
>
> http://www.rxs-enterprises.org/fp
>
>
>
>
> "Cliff Seely" <cliff.se***@childplus.com> wrote in message
> news:1194359160.131784.244870@z9g2000hsf.googlegroups.com:
>
>> Does anyone know how I can make a FrontPage form that includes a field
>> for email address send an e-mail to the address entered in that field
>> after they submit the form?
>>
>> Thanks,
>> Cliff
>

Bookmark and Share