PDA

View Full Version : asp mail form


isselmuden
04-22-2002, 02:03 PM
Hello,

I've got a problem:

Im trying to make a mail form with flash and asp.
this fields should be in the form:
name
organisation
email
comments

this everything works fine, but when i send an email I only recieve from the comments field the first line.

and the comments field is a multiline with word wrap.

But it wont show more then one line when I hit a return in the comments field.

I hope somebody can help me

Greetings Willem

tg
04-22-2002, 03:44 PM
so uhhh whats the code look like?

isselmuden
04-22-2002, 03:55 PM
Has the ASP code something to do with it?
but here it is:

<%

name = Request.Form("name")
email = Request.Form("email")
organisation = Request.Form("organisation")
comments = Request.Form("comments")


set smtp=Server.CreateObject("Bamboo.SMTP")
smtp.Server="mail.photography2day.com"
smtp.Rcpt="isselmuden@home.nl"
smtp.From = email
smtp.FromName = name
smtp.Subject="Reactie Photography 2 day"
smtp.Message = name & CHR(10) & email & CHR(10) & organisation & CHR(10) & CHR(10) & CHR(10) & comments
on error resume next
smtp.Send
if err then
response.Write err.Description
else
Response.redirect ("http://www.photography2day.com/mail/thanx.html")
end if
set smtp = Nothing
%>

Hope you can help me...

Greetings Willem