Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / February 2004

Tip: Looking for answers? Try searching our database.

concatenate contents of variable with string

Thread view: 
Len Burman - 27 Feb 2004 15:53 GMT
I have some code in a form which inputs a friends email address and when you
submit it sends the message to the person at the address. I want to be able
to email to the variable name and also a hard coded address. When I actually
input two addresses, it sends to both. The partial code reads:
Set objMail = CreateObject("CDONTS.NewMail")
     objMail.From= request.form("youremail") 'Specify sender's address
     objMail.To=request.form("yourfriendemail")

yourfriendemail is a variable gotten from a form. I want to replace it with
the contents of yourfriendemail and abc@comcast.net. When I input on the
form abc@bill.com; abc@comcast.net it sends to both. I have tried concat()
adn using a + sign to concatenate.
Collin VanDyck - 27 Feb 2004 16:03 GMT
Len

Please see the answer I posted in comp.lang.java.programmer.  Also, please
do not multi-post.

-CV
kaeli - 27 Feb 2004 16:59 GMT
> I have some code in a form which inputs a friends email address and when you
> submit it sends the message to the person at the address. I want to be able
[quoted text clipped - 8 lines]
> form abc@bill.com; abc@comcast.net it sends to both. I have tried concat()
> adn using a + sign to concatenate.

This looks a heck of a lot more like VBScript/ASP than Java to me.
If that is the case, the concat operator is an ampersand.

Set objMail = CreateObject("CDONTS.NewMail")
objMail.From= request.form("youremail") 'Specify sender's address
objMail.To=request.form("yourfriendemail") & "; abc@comcast.net"

Signature

--
~kaeli~
Does the name Pavlov ring a bell?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.