Thanks for your help.
I tried this:
SendMail (fname.Text, contacttime.Text, email.Text, phone.Text)
and got this?
Compiler Error Message: BC30577: 'AddressOf' operand must be the name of a method (without parentheses).
I tried this:
Dim body as string = "Name: " & fname & " Phone: " & phone & " Email: " & email & " Contact Time: " & contacttime
and got this:
Compiler Error Message: BC30452: Operator '&' is not defined for types 'String' and 'System.Web.UI.WebControls
Is it something I am doing wrong?
Main Topics
Browse All Topics





by: Mortaza_doulatyPosted on 2009-08-15 at 21:44:20ID: 25107802
>>'QUESTION 1 - HOW TO GET MY FORM VALUES INTO THIS SUB
Use:
SendMail (fname.Text, contacttime.Text, email.Text, phone.Text)
And add the above line to the click event of sumbit button.
>>'QUESTION 2 - HOW DO I GET THSE VALUES INTO THE BODY?
Dim body as string = "Name: " & fname & " Phone: " & phone & " Email: " & email & " Contact Time: " & contacttime