Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add String to Email Address Problem

Status
Not open for further replies.

thec0dy

IS-IT--Management
Apr 16, 2010
41
US
I am trying to input text from a string into an email address for the script to use. For some reason it isn't liking it since nothing is getting emailed out.
Dim sFaxNumber
sFaxNumber = (objFile.Name)

'Exchange Server Send To Code
objMessage.To = ""& sFaxNumber &""@efaxsend.com"""


Any thoughts?
 
objMessage.To = sFaxNumber & "@efaxsend.com"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
I tried that and it seems to be putting a space in there. 6159445555 @efaxsend.com

I tried sFaxNumber&"@efaxsend.com" and still the same thing.
 
And this ?
objMessage.To = Trim(sFaxNumber) & "@efaxsend.com"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
nevermind it was grabbing a space. thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top