Time remaining:
Fix for Custom Email Script

Programming
Tutor: None Selected Time limit: 0 Hours

Hi there. My aim to have a user complete a questionnaire online and for the input to be emailed as a PDF attachment to us. I have found a perfect script:

http://coreyworrell.com/blog/article/php-html-email-pdf-attachment

I uploaded this to a hosting account I have running PHP 5.3.25 and it worked perfectly. However I also uploaded it to the required account that has PHP 5.4.11 and it comes back with the standard error on completing - see below:

http://www.gohealthservices.scot.nhs.uk/RGU/form.php

I am pretty sure it must be a PHP 5.4 problem with the code but cant get hold of the creator to look into this. Looking at the code from the link above does anything obvious spring to mind?

AM really keen to sort this today if possible.

Thanks Chris

Nov 30th, -0001
i can try and do it for u
Jun 3rd, 2013
Hi there that would be great not sure how this site works to be honest what is the next step. It is some server specific  issue as the package uploads and works fine on the other server I have access to. So it could be a difference in PHP version and the coding or perhaps another server setting maybe. The link above provides access to a web page that allows you to download all the files and then to upload to your server to test. I can run tests for you on our server or perhaps provide ftp access to test?
Jun 4th, 2013
I am pretty sure now that it is the Swiftmailer part that isnt working that SMTP on the server requires a username and password in order to function. Seemingly in swiftmailer you can pass a username and password but it needs coded in. The hosting package it works on must have a less secure SMTP setup on there I think. Any other ideas though be welcome.
Jun 6th, 2013

Did you know? You can earn $20 for every friend you invite to Studypool!
Click here to
Refer a Friend
...
Nov 30th, -0001
...
Nov 30th, -0001
Dec 10th, 2016
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer