Beginer question

Results 1 to 2 of 2

Thread: Beginer question

  1. #1
    Join Date
    Dec 1969

    Default Beginer question

    Hi,<BR>I am trying to work with email component. I have created a form and want to send an email. What do I need to send an email from my PC? My code is like below.<BR><BR>&#060;%<BR>fromwhom=request.Form("Fr om")<BR>towho=request.Form("to")<BR>subject=reques t.Form("Subject")<BR>content=request.Form("message ")<BR><BR>if towho &#060;&#062; "" then<BR> sendemail fromwhom,towho,subject,body<BR>End if<BR><BR>sub sendemail(fromwho,towho,subject,body)<BR> dim myEmail<BR> set myEmail=server.CreateObject("cdoNTS.newmail")<BR> myemail.From=fromwho<BR> myEmail.To=towho<BR> myEmail.Subject=subject<BR> myEmail.Body=body<BR> myEmail.Send<BR> set myEmail=nothing<BR>end sub<BR><BR>%&#062;<BR><BR>Thank You<BR>

  2. #2
    Join Date
    Dec 1969

    Default Looks fine to me...

    What&#039;s the problem?<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts