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;"myadd ress@domai n.com" <--- FAIL
My second attempt: strTo="email_address;myadd ress@domai n.com"<--- email_address is no longer consider a variable when the email goes out.
Just need a little help to get this going. Thanks
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
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;"myadd
My second attempt: strTo="email_address;myadd
Just need a little help to get this going. Thanks
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.