View Full Version : PHP code on easyspace ?
avelives
02-07-2005, 11:44 AM
Im using the PHP code for the flash form from a tutorial on this site, the code is as follows
<?php
mail("mine@myemail.com", $subject, $message, "From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/" . phpversion());
?>
Which works fine on my site and all the others ive done, but im doing a site for a guy with easyspace as his host.
And for some bizarre reason easyspace require specific php code to get e-mail scripts working...
I was just wondering if anyone else had encountered this problem and how they resolved it ?
CyanBlue
02-07-2005, 12:12 PM
Hey... Long time no see... :)
I had one guy who's had some weird PHP setup... and I had to have him contact the tech support of his host and get the direction to get the job done... See if you can have him go through the similar path or see if the host has some sort of FAQ available... ;)
avelives
02-07-2005, 02:58 PM
Long time indeed.. :)
Ive already got him to conatct easyspace but was just wondering if anyone could resolve it without the whole tedious process of waiting for tech support to answer.
No prob though thanks anyway man ..
CyanBlue
02-07-2005, 03:09 PM
Cool... Love to hear if you find something new... ;)
Billy T
02-07-2005, 03:34 PM
every host has different security settings regarding the sending of emails - some require usernames and passwords, others don't (for example)
I'd use one of the php mail classes floating around (htmlMimeMail for example) and have a play with the smtp and authorisation settings
avelives
02-13-2005, 03:11 PM
ok after lots of messing about and even joining a PHP forum and the script STILL wont work, i have looked into other PHP mail scripts but its integrating them into a FLASH movie as thats what this script is running from.
Can anyone point to a good alternative PHP mail form from flash tutorial ? as ive looked but most if not all are geared at HTML pages and not FLASH
CyanBlue
02-13-2005, 03:30 PM
Did you hear anything from the host???
avelives
02-13-2005, 04:10 PM
No still no reply, and im starting to think that when they do itll be to fob me off and not resolve the issue...
If it was up to me id just host it elsewhere, but its for a mate/client who already pre-paid them for 2 years hosting.
CyanBlue
02-13-2005, 05:08 PM
Well... If I were you, I'd inform the client that the host is not capable of executing standard mail() function and he'd need to change the host... That'll let your client contact the host and see if he can solve the problem with the host... The important thing is that you are informing the client so that they know where the problem is... :)
Billy T
02-13-2005, 11:09 PM
try this
EDIT: what's up with the attachments? says 25k is too big
Post your email and I'll send it through
avelives
02-14-2005, 10:28 AM
sure send whatever it is to, avelives@hotmail.com
brendanww
02-14-2005, 01:26 PM
its odd that the mail() should not work at all, its possible that the host just disallowed the sending of emails entirely in php.ini, if so, you can probably get them to allow your account to use it if you show 'em what you need to use the function for. I've had hosts who've turned on funcs like fopen() and fwrite() for my account only, but I had to show them the specific files they were in.
milkathecow
02-10-2006, 12:37 PM
Have you tried phpMailer ? it's a specific class highly powerful quite simple to implement... you can pass through smtp or other, add attachments, do html or not etc... it's really good and simple.
it's a 2mn story to get online.
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.