asp form submit

Associate
Joined
2 Jul 2004
Posts
1,402
Hi,

I need a form submition feature from a User which will include the users name, company, and message text. This message is to be received via e-mail.
I have IIS on xp with asp available. the user wont have e-mail accounts availble so message must be sent via the form.

any ideas how i go abt doing this ?

cheers
 
Hi, well I got the email submition working using asp.net mailmessage() command.

now I realised I need the user to enter details such as testscript, test number,screen ID etc, basically its a customer form I have already designed.

But how do I submit this form to email via asp.net ?

Regards.
 
happytechie said:
just set the correct properties in the instance of the mailmessage Class that you've just created with the values from the form....

http://msdn.microsoft.com/library/d...l/frlrfsystemwebmailmailmessageclasstopic.asp

HT

not sure exactly what you mean, but if its what i think i tried then i cant because the mailmessage will only recognise certain typres such as subject, body, to , from..... i tried adding my own in but it *** just error

eg

Code:
Compiler Error Message: BC30456: 'Screen' is not a member of 'System.Web.Mail.MailMessage'.

Source Error:

 

Line 38: mailObj.Subject = MsgSubject.Text
Line 39: mailObj.Body = MsgBody.Text
Line 40: mailObj.Screen = MsgScreen.Text
Line 41: 
Line 42:
 
yes mailobj is declared: Dim mailObj AS new MailMessage

yeah I tried to add screen as my own property because I need the user to specifially enter certain other attributes such as Screen Number, test number, and plenty more.

I have a form that requres various text to be entered in textboxes, and checkboxes selected that applies to the user filling in the form. I then need to get this all sent via email. How to do this via MailMessage() I dnt know because afaik u can write a message in using the body attribute of MailMessage() which I can get it to send fine using simple multiline text.

But how to send my custom form via MailMessage() I dnt understand :S

I never thought something relatively simple could be so complicated :(
 
Back
Top Bottom