User User name Password  
   
Wednesday 6.8.2025 / 03:55
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > software, operating systems and more > windows - software discussion > help with php mail
Show topics
 
Forums
Forums
help with PHP mail
  Jump to:
 
Posted Message
smickle13
Junior Member
_
13. April 2008 @ 04:28 _ Link to this message    Send private message to this user   
i have tried for hours to get this to work but i cant!!!!

i looked at other threads no help so hopefully someone here can

i run my flash movie to send mail via php

my flash codes are:

stop();

var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();

sender.onRelease = function() {
senderLoad.theName = theName.text;
senderLoad.theEmail = theEmail.text;
senderLoad.theMessage = theMessage.text;
senderLoad.sendAndLoad("http://qrehab.com.au/mailsend.php", receiveLoad);
}

receiveLoad.onLoad = function() {
if(this.sentOk) {
_root.gotoAndStop("success");
}
else {
_root.gotoAndStop("failed");
}
}

My php file is:

<?PHP

$to = "info@qrehab.com.au";
$subject = "Q Rehab Contact Form Submission";
$message = "Name: " . $theName;
$message .= "\nEmail: " . $theEmail;
$message .="\n\nMessage: " . $theMessage;
$headers = "From: $theEmail";
$headers .= "\nReply-To: $theEmail";

$sentOk = mail($to,$subject,$message,$headers);

echo "sentOk=" . $sentOk;

?>


So i click send and i get sending failed!! if i try and test movie from within flash i get Error opening URL 'http://qrehab.com.au/mailsend.php'
i haved move the php file to all places possible on my server both nothing works!!

please help
varnull
Suspended permanently
_
13. April 2008 @ 13:19 _ Link to this message    Send private message to this user   
Everywhere? If you are running apache the location you need to have it will be in /home/www/whatever/flash/xxxxx which is where apache and most pre-prepared templates look by default.
If running anything else you will need to look further into it, including ensuring the swf port is open.. http://uk.php.net/swf

You have lost me as to why you are trying to send embedded swf with a mail service. Flash is normally served in iframes on pages.

You need a specialist in flash and flash scripting.. which you aren't going to find on this site.

Try www.ozzu.com as they know much more about flash and web scripting.

This message has been edited since posting. Last time this message was edited on 13. April 2008 @ 13:22

afterdawn.com > forums > software, operating systems and more > windows - software discussion > help with php mail
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2025 by AfterDawn Ltd.

  IDG TechNetwork