We are almost ready then I realised I hadn’t tested the form! Always I dread this! Anyway doesn’t work - it says it was sent ok but I don’t receive the email - I don’t think anything is wrong the Freeway end but please take a butch
Hello know how to send email through PHP safely and efficiently …
Below is a Class Delivery in PHP:
Open a new file and save as smtp.class.php
TIP: A good practice is to save this file in a specified folder type / class / smtp.class.php
Hi Justin,
Unfortunately not. I can see from the code that they are sending the mails in a different fashion to the way that the PHP the Action creates does.
Have you tried inserting the form inside Pulse and seeing if that works? I’ve not looked at the code Pulse uses but it could be used to process your form as well. Maybe.
I suspect you’ll need to speak to your host’s support team over this but the above could help in the short term.
Regards,
Tim.
as an after thought if theres no way of getting this to work - i could buy a similar url and host just those pages (contact/fail/pass) with my hosts, i know the form works fine there…
Well, your customers may or may not notice the domain change in their location bar. I’m not sure if that could be a problem or not. You could make the contact form part of a subdomain on your own server, so the domain only changes from www.example.com to messages.example.com, or something like that. That would maintain a semblance of propriety.
Hi Justin,
The PHP the Action creates (the -go.php file) contains code that prevents someone posting data to the script from outside of the current site. This is to stop spammers from posting data to the script remotely. If you are stuck for a solution and the host doesn’t come up with a suitable answer get back in touch and I’ll manually modify the code for you so you can have the form post to another server and send the emails from there.
I’ll have to add some form of security (possibly public key encryption) so that only this form can post to the script but as long as both servers are up and running the solution should work.
Regards,
Tim.
On 3 Feb 2012, at 16:27, Justin Easthall wrote:
as an after thought if theres no way of getting this to work - i could buy a similar url and host just those pages (contact/fail/pass) with my hosts, i know the form works fine there…