In the confirmation page code I have added the following code that sends an email with details from the record displayed in the confirmation page. Here is the code below:
-----------------------------------------------------------------------------------------------------------------------
<?php
ini_set("SMTP","10.99.240.12");
ini_set("smtp_port",25);
mail(
$to = 'sbainbridge@lshs.org.uk',
$subject = 'Network logon: '. $record->getField('Network logon', 0),
$message = 'E1 Username:'. $record->getField('E1 Username', 0),
$headers = 'From: ictservices@lshs.org.uk'."\r\n"
);
?>
----------------------------------------------------------------------------------------------------------------------
I would like to add more data from fields in the record in the confirmation php page but this is where I get syntax errors. I have tried adding the following line below the highlighted line in my code.
$message = 'Details:'. $record->getField('details', 0),
When this is entered I get a syntax error and no email is sent. The PHP code sends an email fine without this line added but I would like add multiple fields from my databse record to the message part of the email.
Any help will be well appreciated!
Thanks
Simon