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 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2007
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    set email address

    Im trying to make a fixed email list (last hair brained idea) im having a bit of a problem though

    email= oRecordset("SubscriberEmail")

    works fine, but what i have in the db, is their username

    so essintially i want

    moby= oRecordset("username"@mydomain.com) where it adds my domain at the end, is this possible?

  • #2
    Regular Coder
    Join Date
    Mar 2007
    Posts
    505
    Thanks
    1
    Thanked 19 Times in 19 Posts
    You are close, but you need to remember concatenates in ASP are done using the "&".

    Code:
    email = oRecordset("SubscriberEmail") & "@myDomain.com"
    
    or
    
    moby = oRecordset("username") & "@mydomain.com"
    This will give you the "username" @ myDomain.com that you are looking for.
    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.


  •  

    Posting Permissions

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