473,394 Members | 1,706 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,394 software developers and data experts.

Form results mailed to me in an attachment

I have a form which customers can fill in whenever they have got products
which they want to be anodised. Everything works fine and in addition to the
email I get out of my formmail.php, I would also like to get an attachment
with that email which also contains the results. I want to use that file for
further processing the customers orders in my database. So the file should
be delimited by tabs of comma's.

Does anyone know if there is an function which can be added in the
formmail.php so this will be possible?
I'm using formmail.php form Andrew Riley (with Don's update)

WiseGuy
Jul 17 '05 #1
3 1778
WiseGuy wrote:
I have a form which customers can fill in whenever they have got products
which they want to be anodised. Everything works fine and in addition to
the email I get out of my formmail.php, I would also like to get an
attachment with that email which also contains the results. I want to use
that file for further processing the customers orders in my database. So
the file should be delimited by tabs of comma's.

Does anyone know if there is an function which can be added in the
formmail.php so this will be possible?
I'm using formmail.php form Andrew Riley (with Don's update)

WiseGuy

Yes, an attachment can be added to the email using headers. Just search
over at http://php.net and http://google.com
There are already dozens of tutorials/scripts for doing this.
Jul 17 '05 #2

"Brendan Donahue" <wi****@wizardsofwebsites.com> schreef in bericht
news:uI********************@comcast.com...
WiseGuy wrote:
Yes, an attachment can be added to the email using headers. Just search
over at http://php.net and http://google.com
There are already dozens of tutorials/scripts for doing this.


Let's try a search on headers then. But maybe someone have a suggestion
on a specific script?
--
Posted by news://news.nb.nu
Jul 17 '05 #3

"Brendan Donahue" <wi****@wizardsofwebsites.com> schreef in bericht
news:uI********************@comcast.com...
Yes, an attachment can be added to the email using headers. Just search
over at http://php.net and http://google.com
There are already dozens of tutorials/scripts for doing this.


I've tried searching for scripts and I think that I will have to take it one
step at a time. First I need to know how to get my form results in a text
file.
For that I found the following:

<?php
$file = @fopen("/order.txt", 'a+');
if ($file == false) {
// could not open the file, so handle the error
}
else {
$buffer = "what you have to write\n";
$written = fwrite($file, $buffer);
fclose($file);

// check everything is ok
if ($written != strlen($buffer)) {
// oops, there was a problem
}
}

?>

But this doesn't write anything to my file called "order.txt". Although I
set
the permissions on that file to 777. Does someone no what's wrong?
--
Posted by news://news.nb.nu
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jim Tome | last post by:
Hello, I'm not much of a Perl programmer (I usually just adapt a canned formmail script!), but I have a situation where I need to route information from an HTML contact form to different people...
7
by: Mike | last post by:
Hi! I posted this question in browser_ctl group as well but got no results. I have a form with embedded WebBrowser. Upon clicking on a link in the embedded webbrowser that calls JavaScript's...
0
by: Toby Inkster | last post by:
Like me, you are probably confronted with many requests for surveys, questionnaires, feedback forms, registration forms and so forth: forms where the processing requirements are very simple (store...
11
by: ChrisM | last post by:
Hi, Don't know if anyone can cast any light on this... I have a fairly complex C# WinForm with (amongst other) a text box and a button. The TextBox has events declared for KeyUp and KeyDown,...
6
by: Spycat | last post by:
Hi all and happy holidays! I should start off by stating I am NOT a PHP programmer. I say that so that in any response to me, you will speak very s-l-o-w-l-y or I won't know what you're talking...
1
by: sxwend | last post by:
I am trying to use the following post results (http://www.thescripts.com/forum/thread189759.html) and add another requirement. I need to send the results to just the email addresses that the query...
3
by: jambonjamasb | last post by:
Hi I have two tables: email_tbl Data_table Data table is is used to create a Form Data_form
0
by: canistel | last post by:
Hi, I have a little python webservice that I created, and in one of the methods I need to store some binary data that was "posted"... I want to do something like this, but it doesn't work. ...
0
colinod
by: colinod | last post by:
Does anyone know if you can send an email from Access using the stationary set in outlook. I have a form that sends the email but it only opens a blank email, it would be great if it opened using...
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: 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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.