Question : Sending mail in ASP

I have experience of VB but am completely confused with ASP.  I have a button with an onclick refering to a function called sendmail.  Further up with other functions I have tried to write a small code which checks that an input box called xEmail is filled and returns a "Good or Bad" message on the result.  I cant even get that to work!

My ultimate aim is to have the button then run a piece of code which changes two inputbox fields (xpassword1 and xpassword2) using a random 10 character string and then emails that password to the email address with a few lines in the body of the email.   It then runs a function called saveuser.

Also do I specify who I am (ie my email address) in the code?

Thanks in advance its getting frustrating now
1:
2:
3:
4:
5:
6:
function sendmail() {
if(xEmail.valueOf = "")
response.write("No email given")
else
response.write("good")
}

Answer : Sending mail in ASP

correction

SELECT TOP 50 * FROM (
SELECT     InvMovements.TrnYear, InvMovements.TrnMonth, InvMovements.StockCode,
InvMaster.Description, InvMovements.Customer, sum(InvMovements.TrnQty) TrnQty,
Sum(InvMovements.TrnValue) TrnValue, Sum(InvMovements.CostValue) CostValue,
Sum(InvMaster.MaterialCost * InvMovements.TrnQty) AS Material,
Sum(InvMaster.LabourCost * InvMovements.TrnQty) AS Labor,
Sum(InvMaster.SubContractCost * InvMovements.TrnQty) AS OSP,
Sum(InvMaster.VariableOverhead * InvMovements.TrnQty) AS VOH,
Sum(InvMaster.FixOverhead * InvMovements.TrnQty) AS FOH,
sum(InvMovements.TrnValue - InvMovements.CostValue) AS Margin,
FROM         InvMaster InvMaster INNER JOIN
      InvMovements InvMovements ON InvMaster.StockCode = InvMovements.StockCode
WHERE     (InvMovements.MovementType = 'S') AND (InvMovements.TrnYear = 2010) AND (InvMovements.TrnMonth = 6)
GROUP BY InvMovements.TrnYear, InvMovements.TrnMonth, InvMovements.StockCode,
InvMaster.Description, InvMovements.Customer
) SQ
ORDER BY TrnValue desc
Random Solutions  
 
programming4us programming4us