Link to home
Start Free TrialLog in
Avatar of Mark Lewis
Mark Lewis

asked on

ASP/VB email question

I have an old intranet site programmed by my predecessor and I need to make a change but don' really know the code. Here is what we have so far and it works:

full_name = Request.Form ("submit_by")
myArray = split(full_name,",")
for i = 0 to ubound(myArray,1)
      If i = 0 then lastName = myArray(i)
      If i = 1 then
            firstInitial = left(trim(myArray(i)),1)
      End if
next
email_address = lcase(firstInitial & lastName) & "@domain.com"
strFrom="New_Matter_Number_Update"
strTo=email_address
strSubject = "Your recent new matter has been assigned a case number"

So basically I interested in the To field. email_address gets assigned an email address and gets emailed. I need to add a static address to this email, ie myaddress@domain.com

My first attempt was this:  strTo=email_address;"myaddress@domain.com" <--- FAIL
My second attempt: strTo="email_address;myaddress@domain.com"<--- email_address is no longer consider a variable when the email goes out.

Just need a little help to get this going. Thanks
Avatar of Big Monty
Big Monty
Flag of United States of America image

Are you getting an error or is the email not going to the second email?
Can you also post your code that sets the mail object and sends the email?
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial