473,750 Members | 2,541 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Darned email in flash

17 New Member
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.loadVariab les("emailgo.ph p", "POST");
}

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

onClipEvent(dat a){
_root.nextFrame ();

}

-------------------------------------------------------------------------------------
the output in the email inbox:
the from field - <TEXTFORMAT LEADING=\"2\">< P ALIGN=\"LEFT\"> <FONT FACE=\"Trebuche t MS\" SIZE=\"12\" COLOR=\"#000000 \" LETTERSPACING=\ "0\" KERNING=\"0\">a mir</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 1348

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

Similar topics

1
1682
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 ..... any idea? name, subject, message & email are vars from the flash (post) _parent.loadVariables("form.php", "POST");
88
12539
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
9539
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 can try?
2
1996
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 "CDO" which I put in in bold. Here is my asp code: // ActionScript Document <% ' declare variables Dim EmailFrom Dim EmailTo
2
5182
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 adding a contact form to it. I am comfortable with PHP, so have done the server side code in PHP. but I can't seem to get the button on my form to trigger my code. I've studied many tutorials about this, but none of them are close enough to my own...
20
1739
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? Thanks <? Error_Reporting(E_ALL & ~E_NOTICE); $subject="from ".$_REQUEST ; $headers= "From: ".$_REQUEST ."\n"; $headers.='Content-type: text/html; charset=iso-8859-1';
2
4071
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 when it deliver's it to my inbox, I am getting all of this jibberish with the email Example: Name: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#242868" LETTERSPACING="0" KERNING="0">Test</FONT></P></TEXTFORMAT>...
0
1461
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 varSend:URLRequest = new URLRequest("http://www.xxxx.contactus.aspx"); var varLoader:URLLoader = new URLLoader; varSend.method = URLRequestMethod.POST; varSend.data = variables; stop();
8
3127
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 from Flash with PHP. In flash i use Actionscript 3. I have tried a bunch of tutorials but they all fail to send email. Any help would be great. Thanks
0
9001
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8838
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9583
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8263
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4716
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2226
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.