E-Mailing Examples Help.
I have created a form, which will allow a person to upload a picture,
and leave me mail. What I am having problems doing is, having the
form actually upload the picture and attach it to an email that is
then sent to me. If anyone knows of any sample code I could look at,
View Complete Forum Thread with Replies
Related Forum Messages:
GD Module Examples
Anyone here used, or is using PHP's GD module in their web design? I would be real interested in seeing what anyone has done with it on their web site with perhaps some sample code which demonstrates how they did it.
View Replies !
Pagination Examples
Basically im asking if anybody knows of any example code or tutorials where i can learn how to paginate a PHP page. I have a mySQL news table which holds stories as mark up. Ive had a look at a few examples and tutroials but most seem to have the the pages of the story in seperate rows in the database. Im also just confusing my self now with the multitude of options. Im using e107 as the back end by the way.
View Replies !
Printing Examples
Does anyone have any examples of how to send web page content to the printer? I've looked at the PHP manual and I think I know how to do it but I'd like be sure: I have to open the printer first Then I use the print write call? Then I close the printer
View Replies !
Looking For Examples Of Huge MySQL & PHP
Does anyone know of any existing operational web sites where a massive (ie. millions of records) MySQL database combines with PHP to provide a directory service? I'm thinking along the lines of the White or Yellow Pages or similar. I ask because I'm researching a project which provides a (large) web-based specialist directory service, and I'd like to be in contact with people who've already done it with MySQL and PHP. I use MySQL and PHP all the time for small applications, but I'm not sure how they compare (in terms of speed and reliability) in the commercial world against the expensive alternatives.
View Replies !
Examples Of Using Inherance And Interfaces In PHP 5
As many of you knows, Zend has relased the Beta version of PHP 5. I have allready make some tests of interfaces, classes inherance, static and public variables, etc, and everything looks ok. Now, when you work with PHP the most common thing is to do something with databases, you have somehow the "same kind of pattern" like: logins, update, add, delete data from de db, show data and that is it. Now, I will like to use the new PHP 5 features in my next project. I was trying to desing some clases and inferfaces for the "pattern" that PHP use to have, and have not come with any good worthy idea. I know Java too, so I was very happy about the the new features in PHP5 and looking to use object model features. Im looking for very clear examples on, how you have used the new features in PHP5 to do the "old PHP thing"?
View Replies !
PHP Tutorial Or Project Examples
I've worked with ASP, ASP.NET and WebSpeed in the past, but now I'd like to learn PHP. I've already gotten a Fedora web server up and running with Apache and MySQL. I'm looking for some examples - or even better a free project - to look over and see how other are using PHP to read/write records to and from MySQL. I'm trying to create a very simple web based contact management system that will store data in a couple of tables. Can someone recommend any examples or web sites to refer to? I'm about to dive into the PHP manual, but I'd like some other material to study as well.
View Replies !
Printing Code Examples
I am building a tutorial site, all is working apart from 1 thing. If i type in some php code even basic stuff like <?php echo date ('Y'); ?> then when its submitted into the database the php gets stripped away i'm using the tinymce editor if that helps make it clear. I need to be able to show code examples as my tutorials are for web design does anyone know a way of showing code. I can disable the tinycme editor and type code right into the textfeild and use the html safe values like: <?php echo date ('Y'); ?> but thats not a good solution as i want to use the tinymce editor as my members will be able to write some tutorials.
View Replies !
Pointer Examples Of Cleaning
I have managed to create a very basic CMS, the CMS cover 6 pages and each page can have its title, pagetext, image link 1 and 2 altered. I have doen the best I can but, I imagine that the code I have produced is somewhat ugly and could be clearer and slimlined. I have included the code for both the form page and the post page. Code:
View Replies !
Examples Of Autoloading Object
I'm a bit confused with autoloading objects. This is only for PHP5, correct? All autoloading functions start with "__" correct? And can someone give me a easy to understand example of an autoloading object? I googled, but I still have questions about it.
View Replies !
MySQL Transactional Examples
Does anyone have any examples of using Transactional processing of MySQL with PHP? I'm not sure if the BEGIN statement needs to be in front of my SELECT statement or processed before hand by itself.
View Replies !
Examples Of Well Written Large PHP Projects
To improve my PHP I've decided to study the source code of a medium to large open source PHP application. Can anyone recommend any applications that they would consider prime examples of well written PHP? The sort of attributes I'm interested in are basically just good software engineering such as clean internals, being well designed, good use of abstraction and also perhaps being well tested (things where there is a lot of room for improvement in my code ).
View Replies !
Looking For Recent Visitor Code Examples/ideas
I am working on updating my content management page and wanted to overhaul my "recent visitor" code. The code that tracks who has been and is still on my pages. I have not been able to find some examples I saw here a few months ago and was wondering if anyone could point me to some examples. The more versatile the better.
View Replies !
File Upload :: Good Working Examples?
I want to make a file upload using php, but everytime i get an error "File name not given". Any hints why this is happening? I used a sample from php.net, and other php sites, but all samples are basically the same. Maybe someone from you has a good and working example?
View Replies !
Real Life Examples Of Mysql+session_set_save_handler
In my test setup using my own session handlers with session_set_save_handler and mysql, the session handler opens and close mysql connections. But what if my page also requires some mysql queries? Should I open a new connection or use the already opened one (opened by the session handler)? I have made it a good practice to close a connection after a query but if I do it with only connection open no session data will be written to my mysql table. I have seen some scripts using persistent connections but are not sure what would be the best for a real world environment.
View Replies !
Mailing
im using the mail() function but a smtp error is getting to me, how i can change the smtp configiration and how i know what to chnge to?
View Replies !
Mailing All Users
I am trying to do a mailing script that sends mail to all users, their addresses are stored in a MySQL table. However, I am having an odd problem with the footer....I am having an unsubscribe function which points to an URL with the user's email address in, however all of these footers are getting strung onto the end of each other and printed at the end of each email. Unsetting this footer after each email has sent has made no effect. The code:
View Replies !
Automatic Mailing
I have a database in which people can submit theirselves. As soon as they submit the database gets updated and they should get a mail with their login-name & password. Does anybody know if this is possible to programm with php?
View Replies !
Bulk E-mailing
I have read a number of the threads on bulk and mass emailing using PHP with a MySql databse. Interesting and informative. But would someone be kind enough to share their complete sucessful code that starts at step one.
View Replies !
Php Mailing List
Is it possible to implement a mailing list using PHP?. I know I could maintain a list of emails addresses in a db and send mail to them through my website, but how can I get true mailing list behaviour where emails are sent to a particular address (like mailinglist@mydomain.com) and then distributed to all of the email addresses?.
View Replies !
Mailing Lists
I have searched in many places about how to set up a mailing list that is scalable yet no web sites seems to want to give out this info. I need to have this mailing list be effective even up to hundreds of thousands of users. Any advice/resources on how to set up this mailing list?
View Replies !
Mailing Class
Just wondered which mailing class do you use for your php sites? I've been using phpmailer for several months but I encounter some troubles using it now... Do you know good mailer class ?
View Replies !
My Mailing Script
iv written a smiple php mail form. Everything works fine however the message ALWAYS delivers in the Junk box. The script is for my anonymous online confession website it allwos people to email other people anonymously. PHP Code:
View Replies !
Form And Mailing
in most forms these days, when you enter the data (+e-mail) and you press SUBMIT, you get a mail thanking you for filling out the form. Is this handled using just PHP mail() function, or is there another program which deals with this more thoroughly and securely?
View Replies !
Mailing With Php, But Not Via SMTP
I have to send ALOT of emails at once, but media temple limits it to 500 emails per hour, which is why i dont want to use SMTP. is this going to take forever using just PHP, or is there a faster way?
View Replies !
Mailing With A Link
I'm doing an web application,sort of a loaning equipment application, shopping cart in another word. Now, i'm stuck and figuring out an issue. My application flow is lyk dis. user apply loan->onClick submit button, a mail will be send to administrator to inform and in the mail, there is to be a link which allows the administrator to go straight into a page of my application to audit the stock(this is the step which i'm trying to figure it out) How am i suppose to do such that i can provide the link in the mail to go straight to 1 of the page in my application securely??
View Replies !
E-Mailing System
I am not sure on how to go about this, but I want to make a e-mailing system that will e-mail everyone in my database.
View Replies !
Mailing My Users
My site was down for a few days so I tried to send my users a mail telling them it's back up, but it seems hotmail thinks it is spam! Please tell me how I can fix this.. cause it is only sent to people that register and it only takes 1 click to unsubscribe.. so it's definitely not spam.. BTW I'm using argosoft mail server P.S. it keeps turning itself off so that I have to press the start button again over and over every time. Is there a way to fix this? It happens many times a day! T_T Oh and I'm using windows in case that makes a differance.
View Replies !
Mailing List
I am really interested in putting a mailing list on my website. I have only just discovered php and mysql and I found a program called php list on my cPanel X control panel on my website. I would like to put a text box on my navigation bar that has inside it "enter your e-mail" (when they click this disappears) and a button on the right of that which says "join" (I will have a jpg underneath this text box saying "Mailing List"). When someone clicks on "join" I would like them to get sent to a page with the e-mail address field filled out in the right table with what the address they entered in the navigation pane, along with a name field they can fill out and a Submit button. I have seen these on many websites so I assume it is not that hard to do, but I am pretty lost as to how everything is connected (the database (mysql?) and the php list program). I assume when they click submit it will send their details to a mysql database / send them a confirmation e-mail. I was wondering what code I will need to make this system work, as I have been reading and googling and I am quite lost as to the mechanics of how it all works.
View Replies !
Mailing Form
I am new to PHP as well as this forum. I am good at ASP (but my school has linux box runing). Currently I am stuck with a project in which I have an HTML page with around 200 text boxes in a single form. When I click the submit button, the html page will send the data to a PHP page. The PHP page displays the values of the text boxes in a properly formatted table and emails the formatted page to an email id, which is provided (in the code). The thing, is I hav finished the code for displaying the formatted page, but I don't know how to do that email coding. I want the email in HTML format.
View Replies !
Mailing To Hotmail
I've problems mailing to hotmail with characters. When the mail arrive to gmail its appearance is good, but when it arrive to hotmail it don't show good the special characters. First I was doing this: mail("onemail@domain.com","España","tÃÂlde españa hotmail", "From: othermail@domain.com Content-Type: text/plain; charset=UTF-8;"); It doesn't work. But I read that hotmail have problems with UTF8 so i do this: mail("onemail@domain.com","España","tÃÂlde españa hotmail", "From: othermail@domain.com Content-Type: text/plain; charset=ISO-8859-1;"); But it doesn't work too.
View Replies !
Mass Mailing
I need to send 30,000 emails to our NewsLetter Subscriber, I tried to use our hosting Site and for the worst part We we banned and our site was stopped. I am using PHP script, mail() function to send Mail. how to send these personalised newsletter.
View Replies !
PDF Mailing Labels
I currently have a database with the following fields: ID, TITLE, NAME, ADDRESS, CITY, STATE, ZIP. The field ID is the primary "id". I am currently using FPDF to create and print mailing labels. It works, but I have to edit line 25 manually on the "PDF" PHP code below to print the mailing label that I need. I have created another PHP file with one form field. I would like to input the ID # or #'s separated by commas for the ones I would like to create labels for. For example, lets say I want to get and print mailing labels for the following ID's: 111,222,333,444,555, etc... I don't know if this would be possible to do or not. This is what I have in the PHP file:............
View Replies !
PHP Web Based Mailing
I could set up a simple Form that collects user data and that have that e-mailed to a designated account. So he basically coded it for me, and it kinda works, but not completely.Would it be inappropriate for me to post the code here to get help with what's wrong? It's not really long, but I desperately need to get it working. I assume that a PHP pro would be able to look at it and know right away what was wrong. Unfortunately, I haven't been able to get in touch with the friend that set it up for me. I'll wait for a response before posting my code.
View Replies !
How Do I Use For A Mailing List?
Im using PHP to allow people to sign up for my mailing list on my site. I have everything set up but for some reason when I click the submit button the information is not being sent to my email address. Im not very good with PHP I just took some online tutorials and tried to figure it out.
View Replies !
Mailing List.
i have created a mailing list system and it worked fine but what if the recipient replies to my return-path. how am i going to get all incoming mails?
View Replies !
Mailing Out To 90k + Users...
I am trying to create a script for a client that has just over 90,000 users in a mysql database that they want to send out a monthly newsletter. I am simply using a looping script from a mysql query, like the following: while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) { sendmailer($row['email'],$numrows,$row['code1'],$row['code2']); } } Then have a sendmailer function to sendout the html email they provide. It seems to get to around the 27,000 figure fine then seems to stop sending out any further emails... Do you think this is due to any kind of timeout, or perhaps an invalid data entry? if there a more gracefully / error trapping way of doing this?
View Replies !
Mailing Script
I've created a custom script that attempts to send out a daily email (all opt-in addresses) to 3 or 4 thousand recipients. I have already tried a couple of open source programs, and Lyris, none of which met my needs. It's really pretty simple: the script reads the addresses one at a time from a database and sends out the same message to one and all using the PHP mail() function. It works quite well, according to my tests. However, I am wondering if there is a more efficient way of doing this, especially considering the list may double or triple in time.
View Replies !
Mailing Newsletter
I send about once a month a newsletter, to currently 250 people. This number is expected to grow. I have used mail() before, but now that there are 250 people this is not the preferred option. I've been reading that the PEAR:mail class would be a good option. I do not need any advanced options. The only requirement is that I can send out HTML e-mails to many people, with a customized message for everybody (because everybody has a different UNSUBSCRIBE link), using PHP.
View Replies !
Problem Mailing Attachment
I mentioned in a previous post (here) that I am trying to create a rich text format file and send it via PHP's mail() function. Almost evertyhing works - I am able to create the file and send it as an attachment. The problem occurs when I open the file. It has nothing to do with the .rtf itself. The problem appears to be with the mail() function. The mail function seems to add a carriage return or space before the $message portion of the email which screws up the display of the rich text file in MS Word. I verified this in two ways: First, by using a simple string for the $message variable in the email. PHP inserts a carriage return when here as well. Second, by saving the attachment that PHP emails me, opening it with a text editor and deleting the carriage return at the beginning of the file, saving it and then renaming the extension to ".rtf". When I open this file with Word, it opens and displays perfectly.
View Replies !
PHP Mailing List Problem
Here's the problem: I've been trying to send to my mailing list using a PHP script, but the page that executes the send times out before the script can actually send to everyone on the list; only about the first half gets sent to.. Is there any possible way around this or to stop the browser from timing out?
View Replies !
Maintaining Mailing Lists
I've few doubts; I'm asking two problem here. 1st, can we use PHP for maintaining mailing-lists. Say, we've 1000 users, need be e-mailed a subscription newsletter i.e. $message is same, loop through e-mail array in db. 2nd, Web site search. We maintain database after reading files using PHP and manipulate results from db. Question is, if PHP is a solution for these problems, also, when users' ( 1 ), keywords' ( 2 ) dbs grow big! There is also a limit of a PHP script execution. In 1st case, PHP has to parse, suppose 10k subscribers, and generate 10k e-mail for sendmail program. Is PHP feasible for such things. What else, is a better and professionally used solution. I don't know CGI? Perl?
View Replies !
Newsletter Mailing Program
Does anybody know of a good, reliable PHP newsletter mailing program? I have a Yahoo! dot com hosting (which is great - I recommend it). The hosting has a MySQL database backend. It also has PHP installed. The hosting, however, will not support Perl. I am planning to offer the newsletter mailing program to potential customers so it needs to be user-friendly.
View Replies !
Writing Mailing List In PHP?
what's the best way to write a simple mailing list program? If one tries to send email to over 600 addresses using mail(), a usual script will most likely timeout. So, the question is, what's the best way to sendout email to over 600 ppl?
View Replies !
Mass Mailing From Database
The code takes all the email addresses from a database table and sends out email to each of them using the mail() function. I'm hosted on a virtual host, so I can't change any INI files or anything to stop the script timing out. I tried putting set_time_limit(0); at the top of the file, to no avail. My options appear to be: 1) Get a Perl script to do it (I can't program in Perl, or find one to do it.) 2) Get some kind of list software (this needs to be in Perl, as I can't install anything on the server. Also it needs to be free, and must work with my existing system (a MySQL database)) 3) Get around the time-outs in PHP (I'm not sure how)
View Replies !
Mailing List Manager
I am using a php mailing list manager that I found on devshed.com and it works great except for one little bug sending the mail which I have isolated in the following bit of code. <?php $message = "This is a test"; // mail function 1: does not work correctly $addresses = file("data/Test.lst"); mail($addresses[0], "Mailing List Test", $message, "From: Crisp Digital Branding <greg@crispdesigns.com>nReply-To: Crisp Digital Branding <greg@crispdigital.com>"); //mail function 2: WORKS correctly $email = "greg@crispdigital.com"; mail($email, "Mailing List Test", $message, "From: Crisp Digital Branding <greg@crispdesigns.com>nReply-To: Crisp Digital Branding <greg@crispdigital.com>");?> Both mail functions below send the mail correctly, but "mail function 1" does not properly send the subject, message, from:, etc. It is all dumped into the mail portion of the message. Mail function 2 works properly. The only difference between mail function "1 & 2" is that the send to email address is pulled from an array of data loaded from a external text file Vs mail function 2 which has a local variable .
View Replies !
Form Mailing Issues
I want to have a seperate form submit button that has a different "action" which would point to the mailing script. But I want it to be able to Post all form fields from the other form that is on the same page. Can I just create a new form at the very bottom with a submit button and it will still pass all fields on the page from the other form that ends before it on the very same page?
View Replies !
|