What is the url on the page it is sending you (classifiedmail.php). Does the url say www.yourdomain.com/classifiedmail.php? or yourdomain.com/classifiedmail.php?ecmd=
I'd say the problem may possibly the space here
classifiedmail.php? ecmd='$ttoemail'
should be
classifiedmail.php?ecmd='$ttoemail'
But another thing to look at is
'classifiedmail.php?ecmd='$ttoemail'
starts with single quote, next single quote is after the = sign. So my guess is if I could show this to you in segments, it's being translated as
classifiedmail.php? ecmd=
next segment: $ttoemail
is $ttoemail two words? If not, I'd try getting rid of the single quotes after the equal sign like so
'classifiedmail.php?ecmd=$ttoemail'
Cgraz