/    Sign up×
Community /Pin to ProfileBookmark

Flash / PHP Mail Issue

Hi there,

I’ve done a website in flash for the first time and have done a contact form on it.

Only way I could find to do this was calling PHP and using the mail function.

It’s not working. Here’s the Actionscript on my flash button:

[CODE]on(release)
{
if(contactName == “” || contactName.length == 0)
{
contentFormResult.text = “Please Enter Your Name”;
stop();
}
else if((contactEmail == “” || contactEmail.length == 0) &&
(contactTelephone == “” || contactTelephone.length == 0))
{
contentFormResult.text = “Please Enter Your Email and/or Telephone”;
stop();
}
else
{
contentFormResult.text = “Thank you, your details have been submitted”;
loadVariablesNum (“form.php”, 0, “POST”);
gotoAndStop (627);
}
}[/CODE]

And here’s the code for form.php:

[CODE]<?

$to = “michaelATmnetuk.org”;
$subject = “Contact Form Submitted on LBACreative Web Site”;
$msg = “hello”;
mail($to, $subject, $msg);

?>[/CODE]

The php code there is just a test to send a simple email to my domain.

Nothing is coming through at all. Does it look right? The PHP version is 5.2.5 I’m told.

The ‘AT’ in the email above is just me on here avoiding spammers!

Can anyone spot anything please?

Thanks.

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@SyCoJan 06.2009 — Put just this on a page save an run it to check mail() is correctly configured.

[code=php]<?

$to = "michaelATmnetuk.org";
$subject = "Contact Form Submitted on LBACreative Web Site";
$msg = "hello";
mail($to, $subject, $msg);

?>[/code]
Copy linkTweet thisAlerts:
@Michael_BurgessauthorJan 06.2009 — Put just this on a page save an run it to check mail() is correctly configured.

[code=php]<?

$to = "michaelATmnetuk.org";
$subject = "Contact Form Submitted on LBACreative Web Site";
$msg = "hello";
mail($to, $subject, $msg);

?>[/code]
[/QUOTE]


Ah wicked, that worked, thanks!

So I know the PHP mail is ok. Any ideas why the call from flash may not work? How can I debug this?
Copy linkTweet thisAlerts:
@SyCoJan 06.2009 — You might get better mileage in an action script forum. Never used it myself. At least you've narrowed the problem.
Copy linkTweet thisAlerts:
@Michael_BurgessauthorJan 10.2009 — Ok, so I've tried everything I can think of, followed numerous examples and I can't get it to send a mail with the values in or formatted properly!!!

Could someone spare me the time to view the source and help me please?!
×

Success!

Help @Michael_Burgess spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...