[Pro] Fasthost and PHP form

Im looking at adding a form to my website - I set up a test here

But as ever doesn’t work -

I looked at the Fasthost help and this is what I found - I have to use an email address hosted by them (which I am) and… this… I need help from here in!

PHP

Use the PHP mail function and set the ‘mail from’ value using the following code - replacing email@hidden with the appropriate email address.

$email_from = “email@hidden”;
ini_set(“sendmail_from”, “$email_from");

You need to add a fifth “-f” parameter to the sendmail function. This will set the name of the from address.

mail($email_to, $email_subject, $email_message, $headers, ‘-f’.$email_from);


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Oh my test page
http://easthalldesign.com/form.html


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Justin,
The latest version of the Action has an option just for this - the ‘Define sendmail_from’ option;
http://www.freewayactions.com/product.php?id=019

This option should work with Fasthost as it was created using the same documentation you mentioned.
Regards,
Tim.

On 27 Apr 2011, at 22:31, Justin Easthall wrote:

Im looking at adding a form to my website - I set up a test here

But as ever doesn’t work -

I looked at the Fasthost help and this is what I found - I have to use an email address hosted by them (which I am) and… this… I need help from here in!

FreewayActions.com - Freeware and commercial actions for Freeway Express & Pro.

Protect your mailto links from being harvested by spambots with Anti Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks it does seem to be working now!?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Justin

It seems to be working . Just used it.

Regards

Lee


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks - it weird because it didn’t work at first. Maybe the server takes a while to process?

Anyway thanks again

J


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options