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 = '$email@example.com';
$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 'firstname.lastname@example.org'.
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?