I would really appreciate help with the following.
I am trying to combine a variables value with text in order to form an email address to use in the mail function.
I have tried the following code:
- Code: Select all
$email = '$start@email.uk';
$to = $email;
The variable '$start' contains only the start of an email address before the '@' symbol (e.g. emailstart) and I want to combine this with the text '@email.uk' in order to form the complete email address 'emailstart@email.uk'.
The above code does not work in combining these and I have also tried using the '+' symbol between them but to no avail. Has anyone got any ideas?






