Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Mailing System

Options
  • 25-04-2002 9:12pm
    #1
    Registered Users Posts: 822 ✭✭✭


    Hey gang.... tis the resident dunce again :D

    Just wondering if anyone knows anywhere that will send anonymous mails,(i.e. Without a Sender name), because the college wont allow it, so i must find somewhere else.

    The reason for this is for a simple mailing system for an .asp website:

    HERES SOME CODE FOR FREE:

    <%@LANGUAGE = VBSCRIPT%>
    <html>
    <body background="IMAGES/bg.gif">
    <%

    ' Get the form data
    name = Request.Form("NAME TEXTFIELD")
    senderEmail = Request.Form("EMAIL TEXTFIELD")
    subject = "Regarding " & Request.Form("SUBJECT TEXTFIELD")
    recipient = Request.Form("me@hotmail.com")
    body = Request.Form("txtCOMMENT")

    ' Create the JMail message Object
    set msg = Server.CreateOBject( "JMail.Message" )

    ' Set logging to true to ease any potential debugging
    ' And set silent to true as we wish to handle our errors ourself
    msg.Logging = true
    msg.silent = true

    ' sender data
    msg.From = senderEmail
    msg.FromName = name

    ' Note that as addRecipient is method and not
    ' a property, we do not use an equals ( = ) sign
    msg.AddRecipient recipient

    ' subject of the message
    msg.Subject = subject

    ' the body
    msg.body = body

    ' send the message, using the indicated mailserver
    if not msg.Send("mail.whatever.com" ) then ''THIS IS WHAT I REQUEST!!
    Response.write "<pre>" & msg.log & "</pre>"
    else
    Response.write "Message sent succesfully!"
    end if

    %>
    </body>
    </html>


Comments

  • Registered Users Posts: 822 ✭✭✭Mutz


    Oh.. and this is the Message that is displayed when I hit Send:
    The message was undeliverable. All servers failed to receive the message
    ClientLogging enabled: Client Remote Address: ---.-.--.--- 'IP Address
    .execute()
    {
    Trying server mail:---.
    .-- 'Mail Server
    ---.
    .--failed with the message: "WSAGetLastError() returned 10051, Network is unreachable"
    No socket for server. ConnectToServer()
    1 of 1 servers failed
    }


  • Closed Accounts Posts: 25 seating


    check you PM mate


Advertisement