Results 1 to 12 of 12

Thread: Sending Mail using CDONTS and IIS4

  1. #1

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Sending Mail using CDONTS and IIS4

    Hi All..
    I am using Following Code to send an email to the user... No Error but the mail is not being sent...
    I am new to this.. so plz help me even if i am being so stupid...


    VB Code:
    1. Dim myMail
    2.     Set myMail = CreateObject("CDONTS.NewMail")
    3.     myMail.From = "[email protected]"
    4.     myMail.To = "[email protected]"
    5.     myMail.Subject = "Your account information"
    6.     myMail.Body =   firstname & " " & lastname & vbcrlf & "You  have been registered under UserName: " & loginname & " and Password: " & upass
    7.     myMail.Send
    8.     Set myMail = Nothing

    One more point.. I am behind a proxy server.. IIS is running on my machine..should i do soething with Default SMTP Server?
    Last edited by moinkhan; Sep 6th, 2003 at 07:44 PM.

  2. #2

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    Anyone with some IDEA?
    Please!!!!!!!!!!!11

  3. #3
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Newbury, UK
    Posts
    1,878
    How is the e-mail sent using CDONTS supposed to be sent??

    - Does it get sent via Exchange (in which case there should be an error log / event reported on the server somewhere).
    - Does it get sent via an SMTP servers (in which case do you have access for you or your computer to relay messages through the server)

  4. #4

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    Thanx God.. i have got a reply...
    I have to send mail thru SMTP....
    Now what should i do?
    Waiting for your feedback..
    Thanx man..

  5. #5
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Newbury, UK
    Posts
    1,878
    An SMTP Server will need to take your SMTP formatted e-mail message and relay it onto the next SMTP server in the chain to delivery to the end user.

    If the SMTP server you are communicating with doesn't like you (in a computer sense) then it will not accept the SMTP message and will refuse to relay it for you.

    For example, the SMTP server may refuse your IP address, your computer name, your logon name or the .FromAddress in your e-mail.

    How CDONTS identifies which SMTP server it is talking to, I am not sure. It might be DNS or it might be in the configuration files somewhere.

  6. #6
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    Have you installed and configured the SMTP server component of IIS?

  7. #7

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    I have installed SMTP.. but just wondering what/how to configure?

  8. #8
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758
    I think it is an NT Service. Scroll through the services and see if there is an entry for SMTP (I don't have an NT Server machine available so cannot check).

  9. #9

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    SMTP Service is up and running... It just doesn't send the mail

  10. #10
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    I think... it's been a while..... but, I think you have to give it the SMTP IP address....
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  11. #11
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    India
    Posts
    342
    Last edited by Kunchesm; Sep 10th, 2003 at 01:09 AM.
    ksm

  12. #12

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011
    Thanx Alot

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