SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    May 2003
    Location
    UK
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry How to send email via ASP???????????

    The following is my code, there is no any error report, but the email cann't be sent? Please help me...
    <%

    dim cdoLow,cdoNormal, cdoHigh, cdoBodyFormatHTML, SendMail
    dim cdoBodyFormatText,cdoMailFormatMime, cdoMailFormatText

    dim oMailMessage
    Set oMailMessage = server.CreateObject("CDONTS.NewMail")
    oMailMessage.To = "gyguo@hotmail.com"
    oMailMessage.From = "billuo@hotmail.com"
    oMailMessage.subject = "test"

    oMailMessage.Body = "body"

    oMailMessage.Send

    set oMailMessage = nothing

    if Err then
    SendMail = false
    Response.Write("wrong")
    else
    SendMail = true
    Response.Write("right")
    end if

    %>

  2. #2
    Drupaler bronze trophy greg.harvey's Avatar
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    3,258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wouldn't this be better in the ASP forum? Anyway, without MS SMTP installed and running on your server you can't use CDONTS for sending mail.

    You can't just send mail like that. You have to have the appropriate s/w installed on your server. It doesn't have to be MS but the MS option is free. Still, good sysadm people don't have it switched on cos apparently it can be a security risk.

    There are alternatives. I've used both JMail and ASPMail.

    G

  3. #3
    SitePoint Addict Patrick Taylor's Avatar
    Join Date
    May 2003
    Location
    Manchester UK
    Posts
    219
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There's a Flash/ASP email application, I think, at:

    http://www.aspalliance.com/bellis/

    Patrick

  4. #4
    Drupaler bronze trophy greg.harvey's Avatar
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    3,258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good God!! How much ActionScript???

    The fact still remains that with no mail s/w to point your scripts at, your mail ain't goin' nowhere!

    G

  5. #5
    SitePoint Addict Patrick Taylor's Avatar
    Join Date
    May 2003
    Location
    Manchester UK
    Posts
    219
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Personally I would rather use PHP.

    Patrick

    "Class is the curse of the drinking workers"

  6. #6
    Drupaler bronze trophy greg.harvey's Avatar
    Join Date
    Jul 2002
    Location
    London, UK
    Posts
    3,258
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Patrick Taylor
    "Class is the curse of the drinking workers"
    Like it!


Bookmarks

Posting Permissions

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