Check Number Off Emails On Server?
in my admin, I want to make an overview of details about my CMS. On of the details is the number of new emails on my server. Can I do this with PHP?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
PHP To Check Unread Emails On A Server Email Account?
I was wondering, is rhere a way, in PHP, to log in to an email account and count the unread emails? It's for a "backlog" section of my site, I was hoping to have a section where it would say "Unread emails: $count" or something.
PHP Obtaining Emails - New Server
I am keeping my existing web host, but have changed email hosts for my domain name - ALL PHP / web scripts etc remain on my existing host.... START CODE :- ============================= $server = "mail.DOMAIN.com"; $server = "{".$server.":143/notls"."}"."INBOX"; echo "<PRE>Using NEW password server / Userid. - JAN 18th 2007"; $user = "mail"; $password = "password"; $subjectMatch = "Test"; // subject of the email messages you want processed $delete = "N"; // if delete is Y then processed mail will be deleted $maxdelete="Y"; #$host = "{".$server.":143"."}"."INBOX"; $msgStream = imap_open($server, $user, $password); ============================= END CODE I'm using the above code... It HAS been working on my existing host (checking my POP account.. ) Due to some issues, I am changing hosts for emails, but keeping all my web / HTTP services on my existing host... QUESTION :- I'll assume that when the above is run, it searches for the Email/POP DNS settings & not http (EG http://mail.DOMAIN.com ) :- my new POP account is represented by "mail" & "password" represents my actual password (both are correct in my script)... QUESTION :- Is there any code I can add to the script, to advise it has TRIED to connect, but something (error) has occurred. (or just connected sucessfully- But no messages received...) & possibly the DNS / IP address of the host it has tried to connect to? PS, I opened my new email service 1-2 days ago (my time), but advised my current website/host to change the DNS settings etc - only about 4-5 hours ago.... QUESTION :- I'll assume as the WWW DNS for email points to my web host - The web-host DNS will re-direct emails to the new-host - in the mean-time (till DNS propegation occurs for all emails... )
Server Isn't Sending Emails
It's not a problem with a specific email service. There are people from hotmail, gmail, aol, yahoo and a few others who haven't received the validation link, but others with the same email service have. I have signed up with 2 of my gmail accounts and my hotmail account and I received the validation email each time, and it never shows up in the spam folder. When I set-up the domain on the server I did nothing to the mail server settings, I just left it with the default settings and it seemed to be working fine, but obviously not. I don't know jack about mail servers, so is there something I need to do to make sure all email are being sent? Code:
Check If Number Is In An Array
how can i check if a specified number is in an array e.g number =5 searching in array (1,2,3,4,5) I know how to do it for a mysql query, but I need to do it in PHP, anyone kno how i could do this. Also say I have several numbers I want to check are in the array, how would I do this.
Check If Number Is A Mulitple Of 3
I'm sure this is very easy, my brain is useless at arithmetic I just need to find if a number is a multiple of 3. Just trying to add a by 2 get one free deal so if they've got 3 or 6 etc then i give one free.
Generate A Random Number & Check DB To See It Is Unique
I have a registration form that once submitted inserts the values into a mysql db. Its a registration form for a trade account (eCommerce site) - basically once a company applies for a trade account, i'd like an Account Number to be generated automatically however obviously this needs to be unique. So ideally i'd would like it to randomly generate an 8 digit number and then check the database to ensure it isn't already in use.
Check For Server Response
I have a few websites and i am working on a little php script that will notify me by email if one of the websites is down. Now i'm not so familiar with this aspect of php so can someone please give me a few pointers in the right direction?
How Can I Check If A Server Is Up And Running?
Is there any way to check if a server is running and then refresh to it? maybe something like this: <?php $url = "http://www.mysite.com"; if(server_status($url) == true){ header('location : $url'); } else{ echo "Server down -- TRY AGAIN LATER"; } ?> I was looking at php.net and i found Memcache::getStats(), but i don't know what that does...
Server Status Check
I was woundering if there was a way to out print the status of a site. Ex: "Google.com = Online" Then if the server goes off, "Google.com = offline". I would also like to know if you use php to make an aggrement, like a window that comes up the first time you go to a new site, and you have to accept the terms, to view the site, but the next time you go to the site, the terms dosn't pop up again, because you allready accepted.
Proxy Server Check
Is it possible to check if someone is connecting to a website from a proxy server?
Check If The Page Exists On A Server
i have a set of links and that will be scrolled monthly, and i want to check if any of the links are broken and want to mail the broken links to the admin. now how do i check if the links are broken ?
Server Load/Number Of Queries
How are these two things accounted for? Like how can I print how many queries I have used, or how much a script is adding to the server load?
Check Server Time Before Playing Next Music Track
I am making a media player, and running a webserver /php mysql database to arrange music and the playlists. However i need the music player webpage - likely using media player embeded or similiar, to break off from each track and allow my system tell it which one to play each time. I will manage this with cusomt made m3u playlists using php and mysql of track data. The php will load the media player the m3u text file depending on the time critera each one is set to. However if say after 10 songs the time is gone 6pm, and at 6 pm a new playlist is to be loaded , i need the music player to check this after everytime and not just play the m3u file through to the end so to speak? Allowing my php code to recall the mysql database for a new playist and track details at 6 oclock. Get me? any ideas how i can do this? will i force page refreshes? but this will hamper the media player i suspect?
Check Week Number In End Of Year And Begiining Of New Year?
I am creating a little own calendar. Now I want to add a "previous week" and "next week" functionality to the calendar. It is easy to take $thisWeek - 1; and $thisWeek + 1;, but there has to be a check wether it is the last week of the year and it should actually be a new year and head to week number 1. HOW do I make this kind of function? I use the following string names: $thisYear $thisWeek
License Check Via License Server?
I was wondering if a license server can be setup to use along with a script install on any server. This is the setup that I had in mind. I want some inputs on this if it would work or not. The Admin Control Panel main script would call the license server everytime it's run to check to see if this domain has a vaild license to use for this period. On License Server Setup MySQL to store the client data/license data. Client No., Client Last Name, Client First Name, Domain Name, License Code, Purchase Date, Renew Date, Expire Date. *Renew/Expire Date can be updated with a update script when license renew are purchase. I don't know if this is a great setup. If anyone have any suggestions. I would greatly appreciate.
Replace Hex Number Or Decimal Number In A String ?
String may contain alphanumeric values. What is the bestway to replace a hex number such as 0x122aaa and decimal number such as 5678 with a string "blah" Example: I want to replace below-- wr_thru1 data or mask mismatch!! for addr=0x00000b73a0540 & mdfid:11 with wr_thru1 data or mask mismatch!! for addr=hexVal & mdfid:decVal
Order Number Or Tracking Number
I need to create some kind of random number within a persons session that can be inserted into a customer id column for their orders, customer, and credit card tables. Unless their is a better way to link a customers information together between a few tables besides using auto increment. Things could get screwed up for me if I use auto increment, especially if someone submits their information but does not actually place an order. My question is " How can I create a random order number that can be used within a persons session and will stay the same throughout the whole program for that one person? "
Database Stores Default Number Everytime, But I Havent Set A Default Number??
Im having some problems with my database. Everytime i store a number which is longer than 10 numbers the script or database puts this number into the database: 2147483647. Its does this everytime no mather how i write the numbers and nomather how long the number is, it just needs to be over 10. I have set any default value in the database and to be sure i havent i tried deleting the table, but same thing happends again???
<br> In Emails
I'm trying to sent an email with new lines in it but it only prints <br> tags rather than doing it? PHP Code:
Php Emails
When a client submits a form an email is dispatched via php to the email address. The problem is mainly with hotmail. When the email is sent, the message has a "!" sign next to it and at the top of the email the following message is listed: The sender of this message, confirm+XCACaMXx@facebookmail.com, could not be verified by Sender ID. Learn more about Sender ID. Some of my clients might get worried and delete the message. Is there a way I can overcome this problem ? Here is my script: Code:
Sending Out 26,000 Emails - How!?!
I need to send out 26,000 emails - on a regular basis... however, this consumes quite some time and I need to find a way to execute the PHP scriptm, without a timeout and without the user ahving to wait for it (at a rate of 10 emails/second, it's still 70 minutes).
Validating Emails
I have this page where if u add an email address it will send an email to u....PHP Code:
Grab Emails
Basically I had an old site which had a guest book where people could leave messages with their email addresses. Well I want to create a script where I can just copy the html into and the php script will grab all the emails for me. I got a program that does this but I want to be able to store those emails directly into my database.
Returned Emails
When sending email from a php script, is there a way to tell if the email was returned as undeliverable? My server uses MailEnable and when I send emails from php I never know if they got to their destination or were returned. I would think that if the email was returned, it should be put in the log files somewhere. But I couldnt find anything in my logs about returned mail. Any one know how I might do this?
Can PHP Recieve Emails?
I know that Perl can handle emails (ie you can forward emails to a perl script on your server and it can do something) but can the same be achieved with PHP? If so, how?
Get Emails From A POP Account.
I would like to make a script where i would get all the emails form a POP# account and send it all to a email, what code would i use to do this ...
Emails & PHP / PEAR ?
Ive found this nifty script that does what I want - in PEAR.. (to send emails) However i'm getting an error.. - Can anyone advise a suitable course of action to correct this :-
Multiple Emails
Does anyone know how to send an online app form to more than one email address??? in php here's my code but for only one email address: Code:
Html In Emails
I am having some trouble with html and emails. I have this script which is suppost to send a html email, although the html is just appearing in plain text. PHP Code:
HTML-emails
Does anybody know how to send an email in html-format? (content-type:text/html)
How Do U Send Emails
i'm writing this new Job Card system... every time a new job is entered or an old one modified an email must be sent to the head of dept on form submission with all the details for that job.does anyone know how?
HTML Emails
I have made a simple form that sends the message in an email etc etc but was wondering (im a bit of a newbie) how to make the email html? What im doing is i have a form that sends info to another script that sends the email, using mail() etc.
Incoming Emails
sometimes, when an action is done on my web site, i send an email to another application. This application send me automatically a confirmation by email with an auto-generated number. How can i automatically get the email to parse it and save this number in a table? Do I need a specific mail server that starts a task when it receives an email? Suppose I install this mail server, how can I communicate the email content to a php script (so it can parse the email and save the number in a table)? Maybe I can't do that with and need to use a perl script? So the mail server run the perl script with the email content?
Messages Being Sent In Emails
I'd like to have the users of a web site to be able to send a note to a friend to tell them about the site. As such, I paint a screen with a canned message and they fill in the email of the friend and submit the page. the stripped down code looks something like this (minus some validations): PHP Code:
Schedule Emails
Has anybody every attempting scheduling emails or trigering any event from a php site? for example, everyday at 10:00am call function x(); ?
Automating Emails
I have a hockey league and would like to send out an email every week. I would like this to happen at the same time every week (say Sat. night). All the info in the email will be from MySQL database so I won't need to change anything that often.
Banned Emails
i have a dating website that will get some spammers so when some one like this joins and i find out i will delete the account and block the ip but most of the time its a router ip so its kind of hard to do what im trying to do is add a table in the database with the list of emails used to spam so if this person signs up again using the same email it will check to see if this email is in the talble and say its band .
Php Emails Do Not Match ??
i have created a registration script for my website and i have added a new featurer that makes you enter your email address twice and then it is supposed to check if they are the same and then if they are submit the form but if not show an error but even if the email addresses are the same it still shows the error below is the code for the email checking Code:
Checkboxes And Emails
I am trying to build a form that changes the email addresses depending on the checkboxes that are checked. I am at a total loss getting multiple checkboxes to populate the email variable. I'm not sure if the checkboxes need differing names or the same name. I get an error that says checkboxes with the same name needs to be in brackets[]. With different names I can't get anything to work.
Duplicate Emails From Formmail.php
Can anyone tell me why I might be getting 2 email returns for every form post using formmail.php? Both are identical, both have the same time sent. I'm using the recipient in the formmail.php script because when I use recipient in my form, it doesn't work.
Sending HTML Emails In PHP
I have a form that my customers can complete, and based on their answers, a results page will display. There are many if/elses in the page to display the proper results based on their answers. This works beautifully. Now my problem: I'd like to send them an email with their answers. I'm using the mail() function, and it works fine sending them the email in HTML format when I put static text in there like "Hello World!". However, I need to be able to perform if/then statements and include files into that email based on their answers. I can't get the includes to work at all. Can anyone offer me some insight here?
Script To Receive Emails ?
I am working in a project and I want to write a script to receive emails from users and store it in the database. User send to regular email but the script is receiving it.
Emails To Hotmail Not Working
I was hoping someone can point me to right direction. I'm trying to send email to hotmail accounts using mail() in PHP. It used to work few months back but it stopped recently. I have Reverse DNS setup as well. Here is my code: $from_name = "Name"; $from_email = "Name@test.com"; $subject = "Subject goes here"; $to_email = "harjot@hotmail.com"; $message = "test message"; $from1 = "From: ".$from_name." <".$from_email.">"; $from2 = "-f".$from_email; mail($to_email, $subject, $message, $from1, $from2); This code works for Gmail and other email services.
|