email forms
i'm new coding , script may come across totally stupid here goes...
i've created form when completed information needs sent client's email address. have contacted isp have given me script use. however, client's email address not hosted them , understand , email have sent need make changes. except i'm totally stumped. can show me changes need make or there easier way this. below email isp script.
"the configuration change should need make script set address address going to. address hosted elsewhere need configure script set address valid email address on domain hosted us. once done script should work correctly."
<xmp>
<%@language = vbscript%>
<html>
<body>
<%
' form data
name = request.form("name")
senderemail = request.form("email")
subject = "regarding " & request.form("subject")
recipient = request.form("recipient")
body = request.form("body")
strreferer = request.servervariables("http_referer")
strserver = replace(request.servervariables("server_name"),"www.","")
strsmtpserver = "smtp." & strserver
' check referer
intcomp = instr(strreferer, strserver)
if intcomp > 0
blnspam = false
else
' spam attempt block
blnspam = true
end if
' create jmail message object
set msg = server.createobject( "jmail.message" )
' set logging true ease potential debugging
' , set silent true in case wish handle errors
msg.logging = true
msg.silent = true
' enter sender data
msg.from = senderemail
' note addrecipient method , not
' property, not use equals ( = ) sign
msg.addrecipient recipient
' subject of message
msg.subject = subject
' , body
msg.body = body
' send message, using indicated mailserver
if not blnspam
if not msg.send(strsmtpserver )
response.write "<pre>" & msg.log & "</pre>"
else
response.write "message sent successfully!"
end if
end if
' clear object
set msg = nothing
%>
</body>
</html>
</xmp>
i've created form when completed information needs sent client's email address. have contacted isp have given me script use. however, client's email address not hosted them , understand , email have sent need make changes. except i'm totally stumped. can show me changes need make or there easier way this. below email isp script.
"the configuration change should need make script set address address going to. address hosted elsewhere need configure script set address valid email address on domain hosted us. once done script should work correctly."
<xmp>
<%@language = vbscript%>
<html>
<body>
<%
' form data
name = request.form("name")
senderemail = request.form("email")
subject = "regarding " & request.form("subject")
recipient = request.form("recipient")
body = request.form("body")
strreferer = request.servervariables("http_referer")
strserver = replace(request.servervariables("server_name"),"www.","")
strsmtpserver = "smtp." & strserver
' check referer
intcomp = instr(strreferer, strserver)
if intcomp > 0
blnspam = false
else
' spam attempt block
blnspam = true
end if
' create jmail message object
set msg = server.createobject( "jmail.message" )
' set logging true ease potential debugging
' , set silent true in case wish handle errors
msg.logging = true
msg.silent = true
' enter sender data
msg.from = senderemail
' note addrecipient method , not
' property, not use equals ( = ) sign
msg.addrecipient recipient
' subject of message
msg.subject = subject
' , body
msg.body = body
' send message, using indicated mailserver
if not blnspam
if not msg.send(strsmtpserver )
response.write "<pre>" & msg.log & "</pre>"
else
response.write "message sent successfully!"
end if
end if
' clear object
set msg = nothing
%>
</body>
</html>
</xmp>
take @ http://www.bebosoft.com
forms go. simple functional, cheap , works.
why struggle? if probs send message
cheers
ian
"vic c" <webforumsuser@macromedia.com> wrote in message
news:e7u6nj$cgc$1@forums.macromedia.com...
> i'm new coding , script may come across totally stupid
> here
> goes...
> i've created form when completed information needs sent
>
> client's email address. have contacted isp have given me
> script use. however, client's email address not hosted them
> ,
> understand , email have sent need make changes.
> except i'm totally stumped. can show me changes need
> make
> or there easier way this. below email isp
>
> script.
>
> "the configuration change should need make script
> set
> address address going to. address
> hosted elsewhere need configure script set
> address
> valid email address on domain hosted us. once
>
> done script should work correctly."
>
> <xmp>
> <%@language = vbscript%>
> <html>
> <body>
>
> <%
> ' form data
> name = request.form("name")
> senderemail = request.form("email")
> subject = "regarding " & request.form("subject")
> recipient = request.form("recipient")
> body = request.form("body")
> strreferer = request.servervariables("http_referer")
> strserver = replace(request.servervariables("server_name"),"www.","")
> strsmtpserver = "smtp." & strserver
>
> ' check referer
> intcomp = instr(strreferer, strserver)
> if intcomp > 0
> blnspam = false
> else
> ' spam attempt block
> blnspam = true
> end if
>
> ' create jmail message object
> set msg = server.createobject( "jmail.message" )
>
> ' set logging true ease potential debugging
> ' , set silent true in case wish handle errors
> msg.logging = true
> msg.silent = true
>
> ' enter sender data
> msg.from = senderemail
>
> ' note addrecipient method , not
> ' property, not use equals ( = ) sign
> msg.addrecipient recipient
>
> ' subject of message
> msg.subject = subject
>
> ' , body
> msg.body = body
>
> ' send message, using indicated mailserver
> if not blnspam
>
> if not msg.send(strsmtpserver )
> response.write "<pre>" & msg.log & "</pre>"
> else
> response.write "message sent successfully!"
> end if
>
> end if
>
> ' clear object
> set msg = nothing
> %>
> </body>
> </html>
> </xmp>
>
>
forms go. simple functional, cheap , works.
why struggle? if probs send message
cheers
ian
"vic c" <webforumsuser@macromedia.com> wrote in message
news:e7u6nj$cgc$1@forums.macromedia.com...
> i'm new coding , script may come across totally stupid
> here
> goes...
> i've created form when completed information needs sent
>
> client's email address. have contacted isp have given me
> script use. however, client's email address not hosted them
> ,
> understand , email have sent need make changes.
> except i'm totally stumped. can show me changes need
> make
> or there easier way this. below email isp
>
> script.
>
> "the configuration change should need make script
> set
> address address going to. address
> hosted elsewhere need configure script set
> address
> valid email address on domain hosted us. once
>
> done script should work correctly."
>
> <xmp>
> <%@language = vbscript%>
> <html>
> <body>
>
> <%
> ' form data
> name = request.form("name")
> senderemail = request.form("email")
> subject = "regarding " & request.form("subject")
> recipient = request.form("recipient")
> body = request.form("body")
> strreferer = request.servervariables("http_referer")
> strserver = replace(request.servervariables("server_name"),"www.","")
> strsmtpserver = "smtp." & strserver
>
> ' check referer
> intcomp = instr(strreferer, strserver)
> if intcomp > 0
> blnspam = false
> else
> ' spam attempt block
> blnspam = true
> end if
>
> ' create jmail message object
> set msg = server.createobject( "jmail.message" )
>
> ' set logging true ease potential debugging
> ' , set silent true in case wish handle errors
> msg.logging = true
> msg.silent = true
>
> ' enter sender data
> msg.from = senderemail
>
> ' note addrecipient method , not
> ' property, not use equals ( = ) sign
> msg.addrecipient recipient
>
> ' subject of message
> msg.subject = subject
>
> ' , body
> msg.body = body
>
> ' send message, using indicated mailserver
> if not blnspam
>
> if not msg.send(strsmtpserver )
> response.write "<pre>" & msg.log & "</pre>"
> else
> response.write "message sent successfully!"
> end if
>
> end if
>
> ' clear object
> set msg = nothing
> %>
> </body>
> </html>
> </xmp>
>
>
More discussions in Dreamweaver support forum
adobe
Comments
Post a Comment