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.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

ASP Mail Problem

  • 16-09-2006 03:32AM
    #1
    Closed Accounts Posts: 12


    Hi can you help me regarding my problem because I created a ASP mail script but I dont know what is the problem with the script because I never receive email when I used it. This is the script:

    email = request.form("email")
    user = rs.Fields("login")
    pass = rs.Fields("password"

    Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
    'put the webmaster address here
    Mailer.FromName = "email@domain.com"
    Mailer.FromAddress = request.form("email")
    Mailer.RemoteHost = "localhost"
    Mailer.Subject = "Password Request"
    Mailer.BodyText = "Per your request your account login information is: " & vbCrlf & vbCrlf _
    & "Username=" & user & vbCrlf _
    & "Password=" & pass & vbCrlf


Comments

  • Moderators, Politics Moderators, Paid Member Posts: 44,371 Mod ✭✭✭✭Seth Brundle


    Who is your code being sent to? Add in a recipient...
    Mailer.AddRecipient "John Smith", "jsmith@anotherhostname.com"
    

    Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/ .



  • Closed Accounts Posts: 12 deks_x


    I want to get the recepient address in the request form kindly check my Mailer.FromAddress = request.form("email") if this one is correct?


  • Registered Users, Registered Users 2 Posts: 4,124 ✭✭✭muckwarrior


    deks_x wrote:
    I want to get the recepient address in the request form kindly check my Mailer.FromAddress = request.form("email") if this one is correct?
    Surley for the recipient's address it should be something like Mailer.ToAddress = request.form("email"). Although that would seem kinda weird too as the recipient address would usually be hard coded in the script.


  • Moderators, Politics Moderators, Paid Member Posts: 44,371 Mod ✭✭✭✭Seth Brundle


    I presume you are using ASPMail
    I think then it would be as follows:
    Mailer.AddRecipient Request.Form("login"), Request.Form("email")

    however, if this form is going to be available to everyone then it will be subject to spammer attack!

    Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/ .



  • Closed Accounts Posts: 12 deks_x


    Thanks for you help!


  • Advertisement
Advertisement