Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





If Something Is Entered Into The Database It Sends An Email To The Client Involved.? How To


i have a form that currently just submits the data to a myql database. i would like to add in a feature that when something is entered into the database it sends an email to the client involved.

for example when an admin enters an invoice for the client an email is automatically sent to the email in the database for that company with an update saying an invoice has been added.




View Complete Forum Thread with Replies

Related Forum Messages:
How Can I Verify The Email Address Entered By Client?
how can i verify the email address entered by client?

is there any readily available function for that in php or mysql?

else suggest me some links for verifying email address enetered by
client.

View Replies !
Form To Be Placed In Each Category That Sends To The Email Address Specified In The Database
I am running a CMS system where each category represents a market place, each market place has it's own email address defined in the database. I would like a form to be placed in each category that sends to the email address specified in the database. Code:

View Replies !
Content Managment (no Database Involved)
I'm trying to create an administrator page on which my client can log in and type a brief message.

Old messages do not need to be preserved, so I was thinking that I could just use a form to submit the information, then the action is a php script that opens a textfile (announcement.inc) and overwrites the old content with whatever she is posting.

Then, on the regular webpage (not the admin access that my client uses), I will just have a require() construct that pulls in announcements.inc. Code:

View Replies !
Apache Sends Blank Email? - Php Email Form
I'm having some trouble with a php contact form on my site. It is based around a basic contact.php form which POSTS and redirects to a sendemail.php form with the variables. As a result, the webmaster receives 2 emails: 1 correct submission and 1 blank email from "Apache". Code:

View Replies !
Mail Problem - Sends The Email From URL
I'm avinga problem with the mail function. I need specific reply to and from addresses which are in the format of URL
I set up the mail function mail($email, $subject, $message, "From: URL Reply-To: URL");

The problem is that it ignores the whatever and sends the email from URL. Any ideas how I could fix this or why it's doing it? Thanks a ton!

View Replies !
Using A Script That Sends A Confirmation Email
I'm using a script that sends a confirmation email to new users but while testing it i haven't received a mail yet. Is there a way to find the error? (like mysql_error() gives the error for queries).

View Replies !
Email Form Sends Before Submit
I have created a email form that gathers info from my user(student) and can send the completed email to an instructor's email. The problem I am having is it sends the email as soon as the page loads. I have tried adding an "if submit" clause, but everything goes haywire at that point. Code:

View Replies !
Sends Emails With An Attachment To An Email Address
I've got a script here that sends emails with an attachment to an email address that is retrieved from an html form. The email sending code is include below.

The problem: when sending the email to certain email servers, the attachment section of the email gets removed and I end up with an attachment of zero kb. Other servers do accept the attachment as expected. Code:

View Replies !
Sends The Email Successfully Even If There Is Illegal Charactors?
The remaining 2 problems are even though it validates the email address with preg_match and echos an error, it still sends the mail and it checks for invalid charactors but (you guessed it) it still send the mail.

The script works fine, it checks if email, name and subject are filled out and if not writes an advice on the page.

It also checks for illegal charactors and correctly formed email address and writes the error message correctly.

The problem is that it sends the email successfully even if there is illegal charactors and/or malformed email address, in other words it knows about the problems but doesn't prevent the email being sent. Code:

View Replies !
Email Sends With Mail() Function But Arrives Blank
The TextInputForm.html form and WorkMail.php script below work fine. But there is one exception. If the "maxlength" variables for the text input boxes in the HTML form below are increased any more than the current settings the e-mail won't work right. What will happen is the e-mail will send but when it arrives it will be blank when viewed in the e-mail client.

For example, if the "maxlength" in the "AnyConcerns" text input box below is increased to 175 or above, and if all of the text boxes on the HTML form are full of text, the e-mail will arrive blank.

The "echo" statements on the WorkMail.php script below work fine. If the "maxlength" settings on the text boxes are too high (resulting in a blank e-mail) the "echo" statements will still print out all of the input in the browser. That indicates that the $Data string is processing all the way through to the SendMail() function below.

I was thinking that maybe, in order to guard against persons sending spam, the ISP has set the hosting server to limit the amount of text that can be sent in any one e-mail.

Does anyone know what might be the problem? PHP Code:

View Replies !
A Link In An Email That, On Click, Sends The Headerinfo To A Server
Is it posible to make a link (to a php-file on a server) in an email
that, when you click on it, sends info about who the reciver of the
email is?

Lets say I send out an email thru an alias to a group of people and I
want to give them the opportunity to sign up for an event using that
link. Those that click the link are added to a post in a database
(MySQL), eg. with their email adress, initials, name... whatever. I
guess that it would be easy if it just takes the contest of the
to-field in the emails headerinfo? If a spammer can do it, so can I :o)

And... if you have an answer please assume that I know practicly
nothing about php :o) I have made a few sites with php and MySQL, but
nothing fancy - just simple guestbooks etc.

View Replies !
Sends The Page To The Supervisor Via Email For His Authentication And Processing.
I've got a employee database that enables a 'narator' to add,delete, or edit very sensitive records. but before  it gets saved to the database it needs to be verified by the 'supervisor'. Is it possible for me to make the buttons on the employee management system that serves as a dummy and just sends the page to the supervisor via email for his authentication and processing.

View Replies !
Create A Simple Email Form Where It Automatically Sends A Quick Message
I'm trying to create a simple email form where it automatically sends a quick message a user inputs to a hardcoded email address. the form i use looks like this: Code:

View Replies !
Table Based Order Form That Can Email Text Entered?
I have a custom order form that I collaborated on with a friend who knows php.

The form needs updated and the code we put together is hard for me to read and update. I think the form can be refined or rewritten in a more OOP way and hopefully as sematic as possible.

The Form is for entering ready made frames. The Choices are color and size. Here is what I need to do:

Enter Name, Email, Store Number, Comments Etc.Create a table based form where users can only enter numbers in each text field.Upon completion, agreement, and submission of the order an html email is kicked to our inbox. The table remains as it was on the website due to html and a separate print css file. Code:

View Replies !
Email Form Confirmation Page (review Entered Details)
Just for example, say it was a form that asked for someones name and favourite number (fav number would be a select list), took them to a confirmation page where they could review what information they entered. And then, it would email off.

Normally when I have done an email form, I put form action="......./email.php" method="post". Code:

View Replies !
Sends SMTP Mail From Database Info
I've got this script that I want to use to send SMTP mail from a form that allows the user to select recipients from a dropdown list that is created using database info and send a message.  Two of the selections in the dropdown list are groups.  My script works fine when the user selects only one recipient.  I run into trouble when the user selects one of the two groups.

The message ends up getting sent numerous times to the people in the group. I received the message 9 times.  I think the script is looping more times than it should.  Does this make sense so far?  Here's the script that receives the form data and connects to the DB to get the recipient email addresses and then sends the message: Code:

View Replies !
How To Check The Database To See If The Username Entered Is Not Already In Use By Someone.
i have a page that registers users based on the data they enter in the registration form.

Username
Password
Password Again
Email

and a few more

what i want now and cannot figure out is how to check the database to see if the username entered is not already in use by someone, and that the email is not already in use. Fields in my database for the sake of example are:

id
username
password
email

View Replies !
How I Check That His Username Entered And Password Entered Matches That In The Db.
when my user goes to log in, i'm pondering how i check that his username entered and password entered matches that in the db. Heres what i wrote:

$query = "SELECT * FROM Members WHERE loginName='$username' AND password='$password'";
$result= mysql_query($query);
$check =mysql_num_rows($result);

if($check < 0) {
echo "Error: Username or password did not match! Please try again!";
}else{
echo "Successfully Logged in";

But that returns this error:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/fantasy/public_html/loginprocess.php on line 15 .

View Replies !
Convert User Entered Date And Time To Unix Timestamp Before Inserting To Database
How do you convert a user inputted date to a unix timestamp before
insterting it into your database? I have a form, with a textfield for
a date that the user inputs in the format mm-dd-yyyy and three dropdow
boxes for hours, minutes, and AM/PM. All of these need to be considered
together and converted to one Unix Timestamp and then inserted to the
MYSQL date field. The type of field is INT (11) so that I can instead
of the standard 0000-00-00 format of MYSQL so that I can do better
calculations and queries.

View Replies !
"send Email" Sends Symbols Instead Of Accent Marks
I've been using a simple, plain text, "Send Email" script to let me know when a new member has registered on the site.

Recently people with accent marks in their names have been registering, but in place of the accent marks I see unrecognizable symbols.

I did some googling and found out that I should add something like:
"Content-Type: text/plain;charset=utf-8" to the header. Code:

View Replies !
PHP Email Client
Has anyone here have any knowledge on allowing a php based email client access to an exchange server that is behind an ISA Server? I am asking here because I need to here from people who have managed to allow their php script to do this. I really need help on what I have to do to the ISA server to allow access to a specific mail box using IMAP.

View Replies !
Open Email Client
I'm working on a script to allow my clients to send an email to their customers through my cart system.

I could have the email send from my server, but I would prefer to have the script pop up their email client and fill in the To: line with the addresses of their customers that are stored in the cart system.

Is there a way to open the mail client using PHP or do I need to simply generate a mailto: link for them to click on?

View Replies !
Web Based HTML Email Client
I have successfully built a web based email client that supports HTML. The question I have for you is why do I get "3D", "=" with a carriage return, "=A0", "=20", "=09" all over the place (without quotes of course), and thats just what I've seen so far.

I looked at the source of the email in my email client (I'm using Netscape Mail) and they are there too but my email client does not show them. How does my email client know that they aren't suppose to be shown and what do they do in the first place?

View Replies !
Simple Email Form For Client
I have a client who wants a simple email form. Is there some quick code that would take care of this easily? what I'm trying to make is:

- name (required)
- phone number & email (either one needs to be required [i.e, if one isn't filled out, the other is required])
- mailing address (not required)
- submit to "emailaddresshere"

View Replies !
Use Squirrel Mail As My Web Email Client
I want to use Squirrel Mail as my web email client. I want to customize it so that the squirrel is replaced with our logo. I assume this is done with css. I put this post here because I write in php and you folks are generally knowledgeable and can point me to the tight place.

View Replies !
Webbased Email Client With Japanese Text
I am developing the mail client using PHP, when I try to send a mail using mail() of PHP. All the text written in Japanese language converted to junk characters. How can I send the mail with japanese language using PHP only.

View Replies !
Math Involved In Credit Card Script
I'm really not sure if this is the correct forum, but anyways...

http://www.ditech.com/calculators/creditcard.html

I'm creating a script that does a similar job to that. It will work out how much a user will have to pay over 12, 24 and 36 months after they have entered their balance and interest rate.

But, how does this tool calculate the monthly amount? I thought it would just be balance + interest divided by the amount of months. Obviously that doesn't work though.

Would anyone be able to help? It seems more like a math question, although it will be being made into a script...

View Replies !
Output Clickable Addresses To Open Email Client
I know I should know how to do this but I am having a very bad coding day. I have the following: PHP Code:

<?php echo $row_accomm_counties['email']; ?>

What do I do to the code to make the output clickable to open the email client with the email address already inserted into the sent to field.

View Replies !
Build An Email Client For A Site So Users Can Read Emails Sent To Them.
I'm trying to do is build an email client for a site so users can read emails sent to them. I think converting the emails to db entries would be the best way to go (if that's wrong let me know). So I'm thinking. emails will be forwarded to a different site, that has imap installed, converted and then added to a database (via cron job) on the first site to be read by users. But I can't find any starter code to convert emails to mysql entries.

View Replies !
Sending POST Data To A Remote Form When Cookies Are Involved.
there's this online service where you can fill a form to send SMS messages to cell phones. You know the drill. It's on a Brazilian site. I want to use it from my script, by "emulating" a form, and sending the POST data to their ASP script.

Now, I'm having a hard time accomplishing this. I used a sniffer to see what Internet Explorer was feeding the script with (the complete request headers), and i tried emulating it first with Perl then with PHP, but their server returns a 302 - Object moved message, and doesn't send the SMS message.

I'm not sure if the 302 warning is supposed to be there anyway (if you fill the form normally on their page, it will redirect to the default.asp page, so maybe the 302 message I'm getting is normal). On PHP, using sockets, I'm able to send POST data, for instance, using this: Code:

View Replies !
Client Connecting To A Travel Database
I am trying to create a client hotel booking interface to Gullivers Travel Associates. In order to connect to them i will be using XML and PHP and will be using HTML to display information received from them. Their specification states the following: Code:

View Replies !
Send A Mass Email From A Database Of Email Addresses
Im trying to send a mass email from a database of email addresses. basically, once a user signs up, their email is inserted into  table in the database. I would liek to make a link that i can click form the backend that says "send out newsletter" this would take all the emails in the database and put them in outlook ( mail app for me), seperate each with a comma and then i could compose a message. here's what i have come up with so far..
//Once connected to database

$mailto = mysql_query("SELECT * FROM newsletter");
while($row = mysql_fetch_array($mailto))
  {
echo "<a href=">. $row['email'] ."/">Send out Newsletter</a>";

}
Ive had it working but obviously it s making each email a seperate link that says "send out newsletter" i would like it to be one link that combines all the emails in a "mailto:" format.

View Replies !
Validate Username - Compare An Entered Username Against A Username In Database
I have created a sign up page. People enter their password twice and those fields are compared. If not the same then an error message is given. I want to compare an entered username against a username in y database. My script so far is: Code:

View Replies !
Email An Email Address Will Update Database
It will be most usefull for news or blogs (for right now) but so you can email an email and have it update your database, exp:

Update@yourdomain.com

You email this with "news" in the subject and it will instert a new record into the database with the new news.

Grant you have to tell it what email address to accept this function from, for protectin against the database.

and also granted that why not use a CMS if your online but i just was wondering if i could do it and so i wrote this code, seeing if anyone was interested.

View Replies !
Nusoap - Array ( [faultcode] =env:Client [faultstring] =Rejected (from Client) )
Using a PHP 4 and Nusoap I get the following errors when attempting to
call a web service

I need to login to the main web service and get a session token to be
able to access the second web service - this part works ok

When I try and call the second web service, I get the following error.

Result
Array ( [faultcode] =env:Client [faultstring] =Rejected (from
client) )

Request

Response

VR array(2) { ["faultcode"]=string(10) "env:Client" ["faultstring"]=>
string(22) "Rejected (from client)" }

Below is my code:

$VendorWsdl =
"https://api.betfair.com/betex-api-public-ws/v1/VendorService.wsdl";
$VendorSoap = new soapclient($VendorWsdl,"wsdl");
$VendorProxy = $VendorSoap->getProxy();

$AddUserParams =
array(request=>array('header'=>$BetfairRequestHeader,'username'=>$tok[3],'vendorSoftwareId'=>342,'expiryDate'=>$expiry));
$VendorAddResult = $VendorProxy->addVendorSubscription($AddUserParams);

$VendorSessionToken =
$VendorAddResult['Result']['header']['sessionToken'];
print("VST "); print($VendorSessionToken); print("<br>
");
if ($VendorSoap->fault)
{
print_r($VendorAddResult);
echo "";
}
else
{
$VendorError = $VendorSoap->getError();
if ($VendorError)
{
echo "<h2>Error</h2>" . $VendorError . "";
}
else
{
echo "<h2>Result</h2>";
print_r($VendorAddResult);
echo "";
}
}
echo "<h2>Request</h2>";
print_r($VendorSoap->request); print("<br>
");
echo "" . htmlspecialchars($VendorSoap->request, ENT_QUOTES) . "";
echo "<h2>Response</h2>";
echo($VendorSoap->response); print("<br>
");
echo "" . htmlspecialchars($VendorSoap->response, ENT_QUOTES) . "";

print("VR "); var_dump($VendorAddResult);

View Replies !
Email All The Email Addresses I Have In My Database
I have written this code to email all the email addresses i have in my database. The content of the email also comes from a row called content Code:

View Replies !
Sends .EXE Or .ZIP Using Mail()
I am in the process of creating a page where a user can type in his e-mail address (or their friends), and then hit 'submit' and each of the address' will recieve in their mailbox an e-mail with either a .zip or a .exe attached. (The file is less than 100k).

I have a script that worked for sending .gif files as attachments, but as soon as I tried changing the file to .zip or .exe it no longer functions properly. For .EXE files it turns them into files with the extension .ZL9 PHP Code:

View Replies !
E-mail Sends
Here is what I am trying to do...

1. Search a database for people that want to receive a newsletter (works)

2. Get the e-mail address and business code (works)

3. Get the business name for the newsletter based on #2 (works)

4. Get the specials for the business for the day of the week (works)

5. Send an e-mail to each person (1) including the business name (3) and the daily specials (4) (kinda works)

We will say that the business has 3 specials for the day. Everything works except for including all the specials for the day in the e-mail. All I can get it to do is display the last special, not all 3. Code:

View Replies !
Sends The E-mail Ok, But It Isnt Cc'ing ?
Sends the e-mail ok, but it isnt Cc'ing ?

View Replies !
Sends Anonymous Emails
I have this script that sends anonymous emails. It worked until i added the super spam mode. I'm not good with php by the way. Here is both my html file (with the form) and my php file (does the work): Code:

View Replies !
Redirection After The Form Sends
I am trying to make a form work on a website. The problem i am having is redirection after the form sends. Right now I just get a white screen and the email sends. Code:

View Replies !
Browser Sends To A Server
i would like to know what string browser sends to server (i guess headers), and if there is any way to get that string exactly.

View Replies !
Script Sends Php Code
I installed a search script I downloaded on my main site. What it does is opens a template (the standard page template) and processes the lines individually.

Sees its 'search' commentary line, and adds its HTML using 'print'.

Problem is, by using 'print' it prints php code right on the page - that code does NOT get processed before it is sent out. I really need the lines before and after search to go through PHP and get processed, almost like an include. But I can't revamp the whole script to use includes.

View Replies !
Database And Email
I have a simple form made up, linking to my sendmail.php . On clicking 'send' I want the details to be added to the database, and an email sent to the user saying their order has been accepted, etc. I can only get one of the two to work at a time - what code do I need to work in .asp? php? I have both mysql and access databases just don't know where to start to get them both.

View Replies !
Add To Database Via Email
I want to give people the option to send a picture, via email, to a certain account and it inserts it into a database. Kind of like Flickr. We have a tailgating site, from the tailgate I want people to be able to take photos from their phone at the tailgate, email it to an account, and it automatically post on the website. What should I search/look for?

View Replies !
EMail To Database
I am looking for a PHP solution that would connect to a POP3/IMAP server, retrieve mail messages, parse the mail messages (incl. attachments), store attachments to the filesystem, then store the "email" to a MySQL database. I've gotten as far as connecting to a POP3 server and displaying the messages, but I am having a difficult time wrapping my brain around the next steps.

View Replies !
EMail With A Database
I am trying to create a script that takes email addresses out of a mysql database with a certain attribute (a field has a certain value, i.e. HR) and put the email addresses inside a variable so I can use them to send an email to those people.

View Replies !
Email And Database
i was wondering if there was anyway to change this bit of code so it will check and see if a email address is in the database i want to take out the member_id part and have it look for only the email address} Code:

View Replies !
Form Sends But Bypasses Validation?
the form sends but the validator never runs i can't see anything wrong. code:

View Replies !
Files Saved In UTF-8, PHP5 Sends UTF-8 BOM
I'm using UTF-8 encoding for my PHP scripts, output is also UTF-8.

all files have UTF-8 BOM: 0xEF 0xBB 0xBF at the beginning

I have PHP Version 5.1.2 on WinNT and PHP 5.1.1 on Gentoo

given code: ....

View Replies !
Sends The User An Activation Code.
My join form (which I'm guessing you're all farmiliar with now) now sends the user an activation code.

This, when clicked sets the activation column on the table from 0 to 1. This bit works fine, however, when I get to logging in, obviously you don't want someone logging in you isn't activated, so I've used an IF statement as below: Code:

View Replies !
File Sends Headers On Very First Line
PHP Code:

<?php if (headers_sent()) print_r('headers sent');

// do other stuff
?>

I have a file, "classes.inc.php", a library of PHP version 4+ classes. This library file, the moment it is included, causes headers to be generated into the HTTP headers! I have no explanation as to how it does that, it just does that.

I have tried everything I can think of, removing extraneous whitespace, using PICO, deleting and recreating the file in PICO, to no avail. There is no instance of print_r, echo, sprintf, nothing anywhere in any of the classes in the file.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved