Hi,
I am using mail function as i want to send message in a format for that i have used '\n' but it is showing as \n , the text does not comes in the second line.
My code is :
$to = '[email protected]';
$from='[email protected]';
$sendername='user';
$replyto='[email protected]';
$subject='Enrollment in Course';
$message='Please enroll '.$enrolmentdetails[0][email].' in Coursefor '.$enrolmentdetails[0][productname].'.';
$message.='\nOther Details are:\nFirstname : '.$enrolmentdetails[0][cf_549].'\nLastname : '.$enrolmentdetails[0][lastname].'\nMobile No : '.$enrolmentdetails[0][cf_591];
if(sendEMail($to, $from, $sendername, $replyto, $subject, $message))
showMessage('Email with student details sent successfully.', 'main-content', 'divMsg', APP_URL."views/completeenrollments.php", 3000, 'success');
else
showMessage('There was some problem sending student details. Please try again later', 'main-content', 'divMsg', APP_URL."views/completeenrollments.php", 3000, 'error');
Right now i am getting this :
Please enroll [email protected] in Course for FP - LVC Plus.\nOther Details are:\nFirstname : new \nLastname : user\nMobile No : 121213313
Please help me on this
Thanks