[PHP] attachment via mail PHP
Hello I was looking a way to fill a forms on line and send them over via the server. Found a good(in my mind) and simple php mail skript from http://open.appideas.com/phpMailForm/source.php I managed to get it working. In my form there is a upload the the file section. like this: with max value of 2megs. It's not working. Pecause Im absolutely new in this I dont have a any idea how to implement attachment part into this script.Original script is here: The following information has been delivered: $key = $val"; $Message .= "$key = $val\n"; } if ($Header) { $Message = $Header."\n\n".$Message; } if ($Footer) { $Message .= "\n\n".$Footer; } mail( "$MailToAddress", "$MailSubject", "$Message", "From: $MailFromAddress"); ?> Thank You! ">Return To The Mail Form Home Page I dont know if I'm explained correctly so please excuse me. Can anybody help please. Olev.
[PHP] how to add attachment
Hello > I was looking a way to fill a forms on line and send them over via the server. > > Found a good(in my mind) and simple php mail skript > from http://open.appideas.com/phpMailForm/source.php > > I managed to get it working. In my form there is a upload the the file section. > like this: > > with max value of 2megs. > It's not working. Pecause Im absolutely new in this I dont have a any idea how to > implement attachment part into this script.Original script is here: > > $MailToAddress = "[EMAIL PROTECTED]"; > $MailSubject = "Equipment Posting"; > if (!$MailFromAddress) { > $MailFromAddress = "[EMAIL PROTECTED]"; > } > $Header = ""; > $Footer = ""; > ?> > > > > The following information has been delivered: > > > if (!is_array($HTTP_POST_VARS)) > return; > reset($HTTP_POST_VARS); > while(list($key, $val) = each($HTTP_POST_VARS)) { > $GLOBALS[$key] = $val; > $val=stripslashes($val); > echo "$key = $val"; > $Message .= "$key = $val\n"; > } > > if ($Header) { > $Message = $Header."\n\n".$Message; > } > > if ($Footer) { > $Message .= "\n\n".$Footer; > } > > mail( "$MailToAddress", "$MailSubject", "$Message", "From: $MailFromAddress"); > ?> > > Thank You! > > ">Return To The Mail Form > Home Page > > Can anybody help please.I dont know if I'm explained correctly so please excuse me. > Olev.
[PHP] Re: attachment via mail PHP
aloo... "Olev Rumm" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello I was looking a way to fill a forms on line and send them over via the server. Found a good(in my mind) and simple php mail skript from http://open.appideas.com/phpMailForm/source.php I managed to get it working. In my form there is a upload the the file section. like this: with max value of 2megs. It's not working. Pecause Im absolutely new in this I dont have a any idea how to implement attachment part into this script.Original script is here: The following information has been delivered: $key = $val"; $Message .= "$key = $val\n"; } if ($Header) { $Message = $Header."\n\n".$Message; } if ($Footer) { $Message .= "\n\n".$Footer; } mail( "$MailToAddress", "$MailSubject", "$Message", "From: $MailFromAddress"); ?> Thank You! ">Return To The Mail Form Home Page I dont know if I'm explained correctly so please excuse me. Can anybody help please. Olev. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] attachment problem
Hello gurus, need some help here please. I have mail php script with out attachment possibilities. How can I add attachment in to this one? The following information has been delivered: $key = $val"; $Message .= "$key = $val\n"; } if ($Header) { $Message = $Header."\n\n".$Message; } if ($Footer) { $Message .= "\n\n".$Footer; } mail( "$MailToAddress", "$MailSubject", "$Message", "From: $MailFromAddress"); ?> / last part I changed like this: mail( "$MailToAddress", "$MailSubject", "$Message", "From: $MailFromAddress", "$attachment"); and there are forms in my html: / I recieve the mail with all the req. fields, but attachment is not picked up, instead it writes: Attacment=c:\picture.gif So what is wrong?
[PHP] problem with mime mail (attachment part)
Hello. Have a submission form on my website with attachment possibility. Now, the problem is that it submits all the fields and takes the picture file with it.But when i recieve it in my outlook or outl.exprss the image is like encrypted - all in zeros and ones mixed with some other stuff. I changed the the destination adress to my hotmail and yahoo mail - it works. Talked to my isp boys they said that problem is in my script... Ok because Im not very good with it - I guess I need some advise here please. Downloaded the script from www.phpguru.net it had good rewievs. /// This is mail.php part /// $key = $val"; $mail_text .= "$key = $val\n"; } $mail->add_text( $header.$mail_text.$footer ); if (is_uploaded_file($HTTP_POST_FILES['attachment']['tmp_name'])) { $fattach = $mail->get_file($HTTP_POST_FILES['attachment']['tmp_name']); $mail->add_attachment($fattach, $HTTP_POST_FILES['attachment']['name'], 'application/zip'); } $MailToAddress = "[EMAIL PROTECTED]"; $MailSubject = "New customer's posting"; if (!$MailFromAddress) { $MailFromAddress = "[EMAIL PROTECTED]"; } if( $mail->build_message() ) { $send_ok = $mail->send('', $MailToAddress, '', $MailFromAddress, $MailSubject, ''); } else { $send_ok = 0; } ?> // and this is on top of the form / and this is the attachment field / / Any ideas please Thanks Olev -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Email MIME Support?
Have a same problem. Moved my mime stuff just for testing to other server and not working at all. working version www.toolmecindustries.com/submform.php not workin version at http://streetrave.tartu.ee/toolmec/submform.php what to do - good question.. Olev. "Steven Walker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > Hello, > > I've just moved my website to a new server and sendmail is not working > the same. My email messages (sent via mail()) are coming out blank or > with mime attachments. To verify my sanity, I tested this same script on > the old server and it came through fine. The new server seems to like > only plain text emails with no headers. > > Does mime support have to be enabled for sendmail? > > Steven J. Walker > Walker Effects > www.walkereffects.com > [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Ok Gurus Shake your nudels !!!
Mime problem. I have my web form here www.toolmecindustries.com/submform.php Now my email recieves all the contens thruogh [EMAIL PROTECTED] (fields what customer filles out) but attachment (picture fail) is shown like encrypted here: rewfg/wr;tlkmbwsl/kw;relktnh;wlkfdvbs.kdfnghb/asdfmgbn/.slfg rewfg/wr;tlkmbwsl/kw;relktnh;wlkfdvbs.kdfnghb/asdfmgbn/.slfg all like that. Now I did an account with hotmail, yahoo and some other mail services and sended this stuff through them - it works I recieve everything !! Asked my ISP - they told that it is 100% my script's problem. How is it possible? Olev -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] live Counter
Hello How can I monitor how many visitors are currently on line, with out refreshing the frame - like a live monitor. Olev -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php