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
    Mar 2006
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    email messaging sytem that sends out asp coded files?

    i have a newsletter that has asp code within the file. i need to send this newsletter out via some sort of messaging system but, most messaging systems only allow html and not asp. does such a system even exist?

  • #2
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    If you use an ASP Mail system (CDOSYS, JMail, ASPEmail), then you can use ASP to build your ASP/HTML page and send it out that way.

    Since email is not server-side, you cannot send ASP pages to email. If you try to use scripts, you will be listed as a SPAMMER or a hacker and put on blacklists. Scripts include JavaScript, WShell (Windows Scripting), and VBScript (outside of ASP).

    Use one of the free clients above (my recommendation is ASPEmail, but some say JMail is better. CDOSYS is included with ASP and IIS 5/6, but the documentation is horrific) and use the IsHTML = true setting and send your email as HTML.

    HTH!
    To say my fate is not tied to your fate is like saying, 'Your end of the boat is sinking.' -- Hugh Downs
    Please, if you found my post helpful, pay it forward. Go and help someone else today.

  • #3
    New Coder
    Join Date
    Jul 2007
    Location
    North Carolina, US
    Posts
    32
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Here's the code I use. For more examples check this site out.
    http://www.asp101.com/samples/
    Code:
    Dim objCDO Dim strFrom Dim strTo Dim strMessage
    Set objCDO = Server.CreateObject("CDO.Message") strFrom = "address@domain.com" strTo = "you@domain.com" strMessage = "This person was just registered.<br>Name - " & Request.Form("txtFirstName") & " " & Request.Form("txtLastName") objCDO.From = strFrom objCDO.To = strTo objCDO.Subject = "New Registration" objCDO.TextBody = strMessage objCDO.Send Set objCDO = Nothing


  •  

    Posting Permissions

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