Php :: Sending An E-mail With Attachment From Flex
Feb 15, 2010
I've made a custom compontent wich mails your own drawings to you. But I have a problem to send an e-mail with attachment. I use the HttpService to send the data to the php-file, but I always get the Fault message (form phpFault()). This is my code in Flex:
I am working on a mail form in flash where in I have to select a file from a local machine and submit the form via php to respective mail id with the attachment.Can anyone please help me find a tutorial or is there any on the internet.
Is it possible to add a attachment to a mail with the mailto function in actionscript 3? Thats the thing, i want to open the default mail program compose window with some data but i also need to add a file as attachment, and that file must be a screen capture of the app.
[Code].....
Looks like the attachment=path/to/file dont work anymore in new email clients, i think it worked until outlook 97 then it was removed for security reasons and so now is imposible to do this anymore.
I Have been using Kirupa for a while now, an excellent resource!! but have only just joined the forum. I have had a look at various Flash tutorials provided on the site but cant seem to find quite what I am after. I have a contact form on a site I am making and I want to be able to browse and add an attachment. I see Kirupa provides a tutorial on contact forms and one on uploading files to a server with flash but unless I am mistaken not a contact form with an attach facility? I would like the attachment to be send directly to the e-mail address along with the other information. I am using CS3 but have published the swf with AS2.0 The site is [URL] if you need to see what I'm talking about to make it clearer - once there click on contact
My problem is this. I'm trying to make a flash movie (in a larger project) that has some input text fields (but not necesarily only that), basically a form, and a button that uses a FileReference class for uploading a file from the users computer. In the end, this setup should send an email with the mesagge and the file attached to the mesagge to a determined email adress.
Now, the problem is that I'm absolutely lame when it comes to php, that meaning that I understand someone else's script but when it comes to writing myself well...huh I'm toast. I have found a beautifull tutorial here [URL](much credit to Jorge Solis) for the uploading part and a equally beatifull one here [URL] for sending a mail. Also I've found here [URL] and here all sorts of scripts for sending mail with attachement, from which, of course, I can't understand a damn thing.
Now, to wrap it up... I have functional movie that puts a file in a folder on the server. I have a flash movie that sends mail via a php-script. I need a God'damn shotgun wedding with these two.
I have a flash contact form and managed to send email with the help of PHP script. Actually, I followed this tutorial on URL.... Now, would like to get one more feature, "attachment".
I carefully followed this tutorial and could never make it work: [URL] Has anyone got the same problems? I have found a few tutorials on the Web. All of them were not using components for inputing variables. They were merely using input text boxes but I tried them and they work.
I know that this topic has been discussed many times but after reading almost everything I could not find anyone having the same problem as mine... Its not that I get 'blank e-mail' nor 'it works in flash but not when uploaded' I actually GEt nothing. After 'send_btn' it directly goes to 'failed' keyframe. Altough I know that my server(godaddy) supports php started to think that my server does not read my .php file because I get no output or warnings from flash while testing.
I developed a Flash application with Actionscript 2.0.
Its a drag n drop thing but now the client would like to be able for the user to send the creation to an e-mail address. Now, I know you can print a bitmap image but can you e-mail one with actionscript?
sending variables through email? Is it possible to place all content of all variables into a single variable or into a certain preformatted text file before sending it through email?
The reason why I'm writting it's because I'm doing a website in Flash, and I don't know how to do one thing.I can create the TextArea, it's ok by now. But what I want to do now it's create 2 buttons. In the first, the "Clean" button, if I clicked on him, the TextArea delete everything it was written there, and in the "Send" button I send an e-mail to one e-mail, with what was written in the TextArea.
I have designed a form with a mail form these are the codes that I am using with my php file but its not sending the message. My same php file is working fine with the static html site. Here is the flash code on first frame:
function submit() { if (contact_name.text == "" || contact_company.text == "" || contact_phonenumber.text == "" || contact_besttime.text == "" || contact_findus.text == "" || contact_learningmore.text == "" || contact_sellermandate.text == "" || contact_buyermandate.text == "" || contact_abuyer.text == ""){ message_status.text = "Please fill up all text fields."; [Code] .....
I made an email form and it sends data entered in the form as httpservice to the url where the php file is hosted which contains the mail() call. During testing and locally it gets sent to my email id. But when I embed it website it throws the following error.
[Code]...
Why is it so.Is it some security sandbox something something.. (don't know much about that in detail).I'm trying to send the data to my gmail account.What should I do. I'm using Flex 3 (any way its not possible via Flash too)Instead of relying on server side script like php, can I directly send it to my gmail account (or any other possible mail account) using server sockets (binary). Can you please guide me. After a lot of googling I found that there must be some file that verifies some ports etc. If so how to setup?
i have tried my hardest to get this mail form working but am having one final problem. When i test the form inside of flash it works fine, i get the email with all inputted information however: when i upload the swf containing the form to my server the form no longer works? i don't even get the message not sent info?
doing one christmas postcard in flash that works this way:We drag some elements to a scenario and when we finish we send the image that we made to our friends and invite them to make one.This as been done hundred times but I can't find this tutorial online, I guess Im not making the right search.My problem is the part when you send the message with the dynamic image the user has done.
I'm doing one christmas postcard in flash that works this way: We drag some elements to a scenario and when we finish we send the image that we made to our friends and invite them to make one. This as been done hundred times but I can't find this tutorial online, I guess I'm not making the right search. My problem is the part when you send the message with the dynamic image the user has done. I'm posting this on AS2 and AS3 forums,
For a company I made a website in flash. Everything seems to work fine except the mailform. Infact the mailform does his job but the message's I receive look like this: First name: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="13" COLOR="#000000" LETTERSPACING="0" KERNING="0">Nick</FONT></P></TEXTFORMAT> Email: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="13" COLOR="#000000" .....
I would like to know if there is a way to drag and drop an attachment file from an outlook email that is open into an AIR application and for that file to be then accessible to the AIR application. When I experimented with this the drag operation is giving AIR a File Promise List. But I'm not exactly sure how to make use of it once it is dropped. All the examples out there explain how to manupilate File Promises from an AIR application to the desktop. Nothing that explains a file promise into an AIR app.
I made this small shop that uses Flash to collect data from the user (and what they want to buy) and PHP to mail the data in a confirmation e-mail. it's not working
I am trying to connect to my gmail account via smtp using port 465 in order to sent emails from inside my app but connection fails...my code is shown below:[code]but it does not connect to send the mail.
I was creating a form. Certian fields of the form store all of those IDs to a single field separated by a comma or semicolon. how to send the mail id's for email validation which is providing by flex by default.
I've got one swf(e.g. Library.swf) which has quite a few of my movieclips that are "exported for actionscript". And I've got another container which uses clips from my Library.swf.I've tried to set up Shared Libraries, but I can't seem to refer to dynamic clips and attach them onto my container swf.Can someone tell me what I can do to make dynamic use of movieclips in shared libraries work?
I posted a thread in AS3 forum and uploaded an attachment. I would like to know how to delete an attachment from a thread, after it has been posted. I've been looking for this option, but couldn't find it.
I've got a weird problem that I'm not sure how to fix.inside my MC, i am creating text , and in my "character" tab, i am writing the URL in that little box. I want people to click on that text and be taken to the url, obviously.but when i go to test the movie, the text doesn't even show up. nothing.anyone had this problem before?