Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Mailing System

  • 25-04-2002 09:12PM
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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