Results 1 to 3 of 3

Thread: asp question

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 1999
    Location
    tehran,iran
    Posts
    53

    Exclamation

    Hi,
    Is there any way to connect to smtp server
    with ASP ?
    if answer is no , what is the way ?



    Thanx

  2. #2
    Guest
    If you're running your're own server make sure that CDONTS and SMTP server is installed(if not re-run the NT Option pack and Add the SMTP mail). If you're not running you have an NT web host they probably have it installed already.

    plug in the following code:
    Code:
    <%
    set objNewMail = Server.CreateObject("CDONTS.NewMail")
    
    with objNewMail
      .From    = "[email protected]"
      .To      = "[email protected]"
      .Body    = "Body of the email"
      .Subject = "Subject line"
      .Send
    end with
    
    set objNewMail = Nothing
    %>
    or if you want to screw around with your own custom components and use early binding set a reference to Microsoft CDO for NTS 1.2 Library but to use it you'll have to make sure you've installed SMTP Mail Server on your machine.

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 1999
    Location
    tehran,iran
    Posts
    53

    Cool

    Thank you .

Posting Permissions

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



Click Here to Expand Forum to Full Width