Difficult to say without seeing/knowing what your process entails, but one easy solution might be to just wrap the macro variable in a compress function.
E.g., to=compress("&p_email.");
HTH,
Art
> I have a srored process which prompts the user for an
> email address:
>
> to=(&p_email)
>
> This works fine, except when the email address
> entered contains special characters, namely a hyphen.
> I this case joebloggs@a-company.com becomes
> joebloggs@a - company.com when the email is sent,
> thus failing.
>
> Can anyone suggest a solution or explain why this is
> happening?
>
> Thanks