sending emails using CDO

Results 1 to 3 of 3

Thread: sending emails using CDO

  1. #1
    hem Guest

    Default sending emails using CDO

    I am trying to send email from my asp page using CDO.<BR>But when I hit submit, my page seems to hang half way. Is something wrong with the code . It&#039s as follows..<BR>&#060;%<BR><BR><BR>Dim objCDO<BR>Set objCDO = Server.CreateObject("CDONTS.NewMail")<BR><BR> <BR>objCDO.To = ""<BR>objCDO.From = ""<BR> = ""<BR><BR>Dim txtSubject<BR>txtSubject = "Hello ! I have visited y&#039r page.<BR>objCDO.Subject = "Replying....!!"<BR>objCDO.Body = txtSubject<BR>objCDO.Send<BR><BR>%&#062;<BR><BR>Ho w will I check if the CDO is installed properly? <BR>I went to Add/REmove programs and checked ..all I found was Windows NT Option Pack 5.0<BR>How will I know that the CDO is installed ?<BR>Any help would be appreciated .<BR>Thanks!

  2. #2
    Join Date
    Dec 1969

    Default RE: sending emails using CDO

    Unless you typed it in wrong, you are missing the end quotes on this line:<BR><BR>txtSubject = "Hello ! I have visited y&#039r page.<BR><BR>Also, it would be a good idea to replace all single quotes with the chr(39) so that doesn&#039t mess anything up.<BR><BR>replace(textSubject,"&#039",chr(39))<BR ><BR>Good luck.<BR><BR>Brandon

  3. #3
    Join Date
    Dec 1969

    Default RE: sending emails using CDO

    oooooooops!!!<BR>Guess you missed the end quotes(") in the text line<BR>txtSubject = "Hello ! I have visited y&#039r page.<BR>----------------------------------------------------<BR>hopw this works <BR>Good luck buddy.<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