php mail sending multiple mails : <p>I am using php mail to send response to client after successfull submission. This works fine. I have a foreach loop that deals with comma seperated entries and what is happening is that mail sending an email for each item instead of 1 email showing entries like: item1,item2,item3 etc. I know that the foreach loop is doing it's job because I can echo the items to screen. </p>

<p>I have posted code on sandbox and include link here. Any help gratefully recieved. I have been struggling with this for 2 days and finally need to turn for help. Thanks</p>

<p><a href="http://sandbox.onlinephpfunctions.com/code/0076b85be7e86ba4c710366dc67d0a956542e6de" rel="nofollow noreferrer">http://sandbox.onlinephpfunctions.com/code/0076b85be7e86ba4c710366dc67d0a956542e6de</a></p>
