Sending emails using IIS in ASP

Results 1 to 2 of 2

Thread: Sending emails using IIS in ASP

  1. #1
    Kay Guest

    Default Sending emails using IIS in ASP

    Hy,<BR><BR>I want my application to send emails when clicking on a button. I work with IIS. How can I do it? Have I to add a new ASP component or IIS has got one? <BR>I don&#039t know how to do so please help me.<BR>thanks for your help<BR> Bye<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Sending emails using IIS in ASP

    One way is to use the standard CDONTS.NewMail object. This works fine on IIS but not PWS.<BR>Or you can look into an excellent product called AspEmail from, the product work on both IIS and PWS.<BR>Here is a sample for CDONTS:<BR>Set objNewMail = CreateObject("CDONTS.NewMail")<BR>objNewMail.From = ""<BR>objNewMail.To = ""<BR>objNewMail.Subject = "test"<BR>objNewMail.Body = "Don&#039t forget to feed the cats!"<BR>intMsgImportance = 0 &#039Low<BR>objNewMail.Send<BR>If you want user to click a buttom to send the mail, just include the above code in another asp page, and let the buttom to active that page.<BR>Thomas

Posting Permissions

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