I had added that code in the hope of solving the problem

Thank you
which xampp settings should I check?Is the script running on a web server or on a local system (xampp) ?
If running on a local system, there is not much I can do, as mail sending issues may depend on your xampp settings.
No problem for me if it can 'help solve the issue.. ThanksWith permission of course (traco) if you want to send it to me Paul and I will take a look...
I Tried..[a] try removing the apostrophe in the location name and see if that does anything.
if not I'd need to see your project to be able to dig deeper.
I did This.2. The gaps will only appear if you don't fill out the extension fields correctly - look at page three of the help file and you will see that each line is an individual field. If you don't fill them in you get a blank line also.