473,385 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Darned email in flash

Ok, i have been trying to set up a form in flash with an php file handling the code then sending it to an email. Although I have managed to get the thing to send info to email, the information is sends is just strange. It is usually long and lengthy, without it being just the normal text of what i need it to be. below is what is being outputted. I thought i was missing something somewhere but ha i dont know.


The PHP file:
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. $sendTo = "ssd@simplysaucedesigns.com";
  3. $last =  $_POST['lastName'];
  4. $email = $_POST['email'];
  5. $message =  $_POST['message'];
  6.  
  7. $subject = 'SSD Inquiry from ' . ($_POST['firstName']);
  8.  
  9. $headers = 'From: ' . $_POST["firstName"];
  10. $headers .= "<" . $email . ">\r\n";
  11. $headers .= "Reply-To: " . $email . "\r\n";
  12. $headers .= "Return-Path: " . $email;
  13. $message = $message;
  14.  
  15.  
  16. mail($sendTo, $subject, $message, $headers);
  17. ?>
  18.  
--------------------------------------------------------
the code for the submit button:

on (release) {
form.loadVariables("emailgo.php", "POST");
}

------------------------------------------------------------
the code for the movie clip (the form fields are placed in a movie clip named form)

onClipEvent(data){
_root.nextFrame();

}

-------------------------------------------------------------------------------------
the output in the email inbox:
the from field - <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Trebuchet MS\" SIZE=\"12\" COLOR=\"#000000\" LETTERSPACING=\"0\" KERNING=\"0\">amir</FONT></P></TEXTFORMAT>

the same goes for the subject field and the message part. It does put out the variables but also puts out that formatting stuff as well and i cant get rid of it. any help would be great. thanks.
Jul 21 '08 #1
0 1334

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: kyrbi | last post by:
hi, using flash and php script I try to send mail from my website (linux hosting) The script is working but if I enable the marked lines (//....) the script doesn't want to send mail ..... ...
88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
16
by: TJO | last post by:
I am trying to pre populate an email body using javascript. I cannot figure out how to control the carraige returns for the text. The standard \r\n is not working. Is there another technique I...
2
by: SonicJ | last post by:
I'm setting up a flash form that calls an asp page that generates an email containing contact info. I'm pretty sure my coding. Where I think my problem is the statement that creates an object using...
2
by: snowweb | last post by:
Hi, This is my first flash project! It would be great if someone could help me please. I have purchased a flash template which I have made some alterations to. My biggest alteration is that of...
20
by: Pete Marsh | last post by:
Wondering if anyone can see an error with this script. I get a server configuration error. THat could mean a module is not being loaded, but maybe there's a syntax error here, can anyone spot it?...
2
by: staryeyes47 | last post by:
Hi, I am creating a contact page for a my website and I am having a bit of trouble. I have created the form in flash, and am using a php file to send the email to myself. The form works OK, but...
0
rrocket
by: rrocket | last post by:
I was wondering if anyone has done an email form in flash with a .NET backend (instead of PHP)? For the Flash side I have this: var variables:URLVariables = new URLVariables(); var...
8
Catalyst159
by: Catalyst159 | last post by:
I am trying to create a contact form in Flash CS3 for my website. The form will be used to send an email to a specifies email addresse. I am a little confused as to how I can go about doing this...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.