Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2007
    Posts
    57
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Send mail without COD

    Hi all, I am trying to send an email in asp classic without COD. I have been told this is possible using some http SMTP web mail function, but I cant find any thing about in on the net? Could any one point me to some code examples?

  • #2
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    Have you tried using Haddock?

    Sorry....

    AFAIK you can send email in ASP via two methods: CDO, or a 3rd-party component - that one's free but google will throw up several more. I know of no other way.

  • #3
    Regular Coder
    Join Date
    Nov 2007
    Location
    Chicago
    Posts
    134
    Thanks
    2
    Thanked 9 Times in 9 Posts
    While you may not want to use CDO, this is what I use and I find it pretty easy-to-use and it works well.

    Code:
    	
    
    ' email address passed in from form
    Dim email = request.form("email")
    
    ' send message to person who filled out the form
    
    Set confirmMessage=CreateObject("CDO.Message")
    confirmMessage.Subject = "Contact Us"
    confirmMessage.From ="contact@domain.com"
    confirmMessage.To = email
    confirmMessage.HTMLBody = "<p align=left><font face=arial size=2>"
    confirmMessage.HTMLBody = confirmMessage.HTMLBody & "Thank you for contacting us!<br><br></font></p>"
    
    confirmMessage.Send
    set confirmMessage = Nothing
    So... that doesn't answer your question, but I'm hoping it might make your life easier using CDO. My other suggestion would be along the lines of what Spudhead says - find some 3rd party software API you can plug into.


  •  

    Posting Permissions

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