PHP mailer
- Started
- Last post
- 11 Responses
- rasko4
I have this code (plus the php tags), it doesn't seem to work, I'm using it from a flash file , the variables are all relative to the text fields I have.
$msg = "Sender's Full Name...
$msg .= "Sender's Company...
$msg .= "Sender's Email Address...
$msg .= "Sender's Phone Number...
$msg .= "Sender's Comments...$mailheaders = "From: Native Web Site \n";
$mailheaders .= "Reply-To: $email\n\n";, "Contact from teh site", $msg, $mailheaders);
- Seph0
Go here:
http://ghostwire.comthen:
you will need to download ghostwriters phpObject and the macromedia extension manager which are both free.then: (tutorial piss easy)
Got this up and working and sending customized html emails from flash in 15 mins.
Its so easy I could cry.
- rasko40
cool thanks, I'll try that... just gotta remember my macromedia login details..
- unfittoprint0
remember: as off PHP ver 4.12, global variables are urned off as question of security, so they're not immediatelly available when you send them via a link. You'll have to use th server $_GET to retrieve them.
I made a loop to retrieve all at once, you might want to include this on top of your file:
foreach ($_GET as $key => $value) {
$$key = $value;
}
- mirola0
bear in mind that you may have a problem with certain mail servers not allowing you to relay messages from different domains to the one you're currently in.
i.e. if your script is executing on raskosmells.com and you're trying to make it look like it's from raskodoesnotsmell.com you may have a problem.
- rasko40
ok thanks folks, I shall have a go after lunch, and mirola - how did you know my domain?!
- rasko40
I just realised the host has a 'php safe mode' and I have to request them to disable it, giving them a URL to the script etc.. fucking lame, is this normal?
- unfittoprint0
Are you trying to link to a php outside your host, or does it reside on your server?
If it's outside, it might be for security issues.
If not, and if php is included in your host plan, then it's strange, you should be allowed to have complete access, anywhere.
- rasko40
no I'm just trying to put a simple php mailer form on my server which a flash files posts to in order to send an email.. dead simple... the hosting package comes with PHP yet they say I have to request it to be disabled.. should I be able to use simple scripts with it on?... the they point me to this: http://uk.php.net/features.safe-…
- rabattski0
you can bypass php safe mode most of the time by running php scripts in cgi-mode.
create a .htaccess file which resides in the same folder where your php script is.
the .htaccess contains this:
addtype application/cgi-php phpthat should bypass the php safe mode.
- rabattski0
but it's a little bit slower though. a little litlle bit. like 0,1 sec or something.
- enobrev0
hey rask, safe mode shouldn't affect a php mailer. safe mode is more for ensuring that php doesn't get use of system commands. It shouldn't have any affect on mail functionality, unless the script you're using is using system commands for some reason.