In the common functions for the email function Change content-type header to ['Content-type'] = 'text/plain; charset=utf-8', Then format your message string like this mail('[EMAIL]123@gmail.com[/EMAIL]' ,'Data', “one line two line hree line”) the header ['Content-type'] = 'text/html; charset=utf-8', ignores all spaces and new lines etc