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.





Mail To Local Server


I have a question, May be i am wrong but i have doubt, If some body explain it either i can or not. Can i sent email to my local pc server then i read it. Explanation: For example i have a form where i put email, click on send button ,page executes and send mail. But is it possible to send this mail to local server on my pc,I mean offline internet. Without internet connection. I have apache with php,mysql And Windows server 2003. Then a script or software through which i read that mail. I want this only to check my scripts without uploading it to the internet server.




View Complete Forum Thread with Replies

Related Forum Messages:
Mail() [function.mail]: SMTP Server Response: 550 Not Local Host Gmail.com
I do a mail() and get:

Warning: mail() [function.mail]: SMTP server response: 550 not local host gmail.com, not a gateway in C:xamppxampphtdocs estsitemail.php on line 7


<?php
ini_set("SMTP","rlwatkins.com");
ini_set("sendmail_from","hunter@rlwatkins.com");
mail("huntercjcarroll@gmail.com","hello me","spamtastic","From: hunter@rlwatkins.com");
?>

what is wrong with this, how do i set it so that i can send to something other than localhost?

View Replies !
Mail() Not Working On Local Server
I've got a form on a local server that has a working internet and network connection and it uses the mail function and it doesn't work. It works perfectly when I execute it online but it won't work locally. Essentially, I'm trying to mail html and here is my code:

View Replies !
Php.ini Settings To Use Local Mail Server
I have installed the mail server at my PC but I don't know the changes should be made in php.ini file to make it work.

View Replies !
I Need To Test The Mail() Function On A Local Server?
I want to test the mail() function in my scripts(noob) where I can send and receive e-mail using the same localmachine without having to connect to the internet. What do I need to do this?

View Replies !
Php MySQL Works On Remote Server, Only Partially On Local Server
code to populate form select fields with data from a MySQL database, so a user
can use those to sort/filter and view the 3,000 records. No inserts --
just selects; very simple.

I originally set this up using URL-based query strings at
http://stjuliana.org/school/ar/BUindex.php but since that only allowed
sorting and not filtering, hence all 3k records load, I made a form
verson at http://stjuliana.org/school/ar/index.php . Everything works
just fine, however, there's still a lot of tweaking I want to do, such
as splitting the form input and output into two pages (_blank), having
a printable version, etc. To that end I just set up the latest builds
of Apache, php and MySQL on my local Windows XP box, lest I blow my
beer budget for the month on bandwidth overage. <g>

I have a very simple page I used to test my localhost setup and
everything's fine. I can connect to MySQL, create, insert and select
from DBs, so I know my config is fine. All my other .php pages on this
site work fine locally as well.

The two abovementioned pages, however, are giving me fits when run
locally...

For the URL-query-string version, it loads up with the default view
(=name_ns), which grabs all records and sorts by name and point asc.
No matter which of the other sort 'views' I might choose, it still
loads up all the records in that default sort. The server's holding on
to something and I don't know how to clear it. The remote version
correctly sorts based on the query string chosen.

The form version is worse. It connects to the DB and populates the
select boxes with the field data -- that part's fine. But no matter
which submit button is selected, no data is retrieved. I get no error,
but no data either. The form's action is set to $_SERVER['PHP_SELF']
and I've tried both GET and POST -- no change.

Since the exact same pages work on the remote server I know it has to
be something on the local setup. But where do I look if there's no
obvious error?

This is probably something incredibly basic but I'm bleary-eyed from
reading tutorials and forums all over the Internet and can't come up
with anything.

View Replies !
Scheadule Backup Of Our Database From A Host Server To Our Local Server
I am wanting to scheadule backup of our database from a host server to our local server. How do I do this and is their any software out their that can take care of it for me? Or will I have to write the scripts?


View Replies !
Mail Problem - Warning: Mail() [function.mail]: SMTP Server Response: 550 Invalid Recipient:
Whenever the recipient's email address includes a hyphen ( - ), I get the following error message...

Warning: mail() [function.mail]: SMTP server response: 550 Invalid recipient:

I should stress that this only seems to occur when the hyphen is in the URL portion of the address, i.e example@perfect-example.com

The current code works along the lines of...

mail ($_POST['email'], 'Email subject is here', $body, $headers);

View Replies !
Local Mail
i am running a home server but i can't get mail() to work. what will i do if i have no mail server? im using apache/linux/sendmail.

View Replies !
Web Server In Local
I work actually in local and when I put my php (and html) files on the local directory configured as localhost, an error message (which says that no files are on the server) appear. The server is Apache on Windows XP, and I see on the server only the Apache manual (and the message that says "Apache is correctly running!"). I had been just pass to Apache and I don't know what I do.

View Replies !
Export Local DB To Server DB
can anybody refer me to a tool so that i can upload data from my local
mysql DB to server DB without phpmyadmin. I have FTP and other access
to server. my DB is like 100 MB.

View Replies !
Local IMAP Server
I've installed EasyPHP on my Windows machine, which does the job really
fine. Apache, PHP and MySQL easy going.

What are the possibilities for installing a local IMAP and POP server for
the same test/develop purposes?

View Replies !
Local Apache Web Server
At the moment I am using "easyphp" on my computer to test my php code. However, I would like to get a little more advanced and replicate an apache server on my home computer. Such that I can build a website using .htaccess on my home computer.

I can build it at home, then upload it all nice and finished to an apache server. Does anyone know where I can get an apache server for my home computer? A kind of local host for apache?

Also, I would like an IMAP email client on my server and to have some PHP code that is able to "read"/parse my incoming emails. Open them up - "read" them by looking for keywords - then delete them etc. Code:

View Replies !
Local IMAP/POP And FTP Server
I've installed EasyPHP on my Windows machine, which does the job really fine. Apache, PHP and MySQL easy going.

What are the possibilities for installing a local IMAP and POP server and a FTP server for
the same test/develop purposes?

View Replies !
Local Apache Server
My php script uploads my files fine. I did a chmod 777 to the directory I want uploaded files to go, but when I upload to that directory (with php) none of the files have permissions, but the files are there. What's going on.

View Replies !
Accessing Mail On Local Machine
This is probbly not a php question but here goes:
I recently installed cyrus-imapd.
The imap server is up and running, I am able to login but it says that I have no mail but if i use pine I am able to see all my messages.

View Replies !
How To Activate Local Mail In Xampp
I am php developer. I did the project using aweris web server. now i
want to run the project in xampp web server. The problem is local mail
function is available in aweris. Can we use the local mail function in
xampp?.. Yes then how to activate the mail. Please explain detail..

View Replies !
Non-local SMTP Mail Function.
I am working on a webpage that is on a different server than the email
server that the company wants me to use to send emails.

Is it possible to change the PHP.ini file to use this non-local SMTP
server, or is it not that simple?

View Replies !
Reading Local File Not On Server
I am trying to parse a file which is located on the users local drive and then take this data and put it into the mySQL DB. However, I get errors when I pass in a file path such as C:Documents and SettingsAdministratorDesktopfooSLInfo.txt.

View Replies !
Upload To Local Server Problem
Can anyone see where i am going wrong? I'm testing an upload facility. Here's the code for displaying the upload form:

View Replies !
Local Apache Web Server Revisited
I would like to replicate an apache server on my home computer. Conclusions of a previous thread on this topic:

1) Use the same operating system for your local apache server as your host uses.

Any comments on just how important this is would be very welcome because i am thinking of cutting a corner and running my local apache server on windows XP. My prospective host uses Linux.

2) There are some nice "neat, easy, tidy" installs of apache (with PHP and MySQL) available.

easyphp
AppServ
XAMPP

Any comments on which one is best would be highly appreciated. As would further suggestions.

3) Things that I want to do which are a bit special:

) Use the PHP IMAP functions. These are a PHP extension.

http://uk2.php.net/imap

So, I will have to add this extension. How easy is this with these local apache servers?

) Does anyone know an IMAP email client that I can put on my local host apache server?

courier-imap or CyrusIMAPD are apparantly possibilities. Can anyone point me to any reseources that would guide me through setting up these clients so that they are integrated with the apache web server - so that PHP code on the apache server could have access to emails in the IMAP email inbox. PHP code on the server can send emails from the IMAP email inbox.

View Replies !
Apache Local Test Server On XP Pro
I'm hoping someone can help me with the following. My son is learning
PHP and wants to install an apache test server on our XP pro home
computer so he can test his code before uploading it to his hosting
company. I don't have a problem with this in principle but I do have
the following concerns:

1) We connect to the internet via AOL and my son's account is a "young
person access" account. Will this be compromised by apache?

2) Will the installation of this apache server allow my son to breach
Windows security at all (he is a restricted user at present)?

3) Any other possible security issues?

View Replies !
How To Setup A Local Server Environment:
I want to setup a localserver environment in my desktop (OS : Win XP)so that i could use ASP.Net , PHP , Ajax ,Mysql and SQL server in that local host.
I want to know wat are the things i should download? and from where it to
be download?

View Replies !
Set Up A Local Email Server For My Laptop
I want to set up a local email server for my laptop, I go on trips constantly for work, and don't always have internet access to test my scripts on.  I have WAMP server installed and is good for testing those scripts, but I want to install a test email server to test if my email functions are working correctly... does anyone have a link to an email server that is good for this type work?

View Replies !
$_FILES From The Server - Not Local Machine
I'm just playing with someone else's code and was wondering how to get details of a file that's already uploaded to my server into the $_FILES super global.

the code I have is: ...$uploadedFileName = $_FILES['filename']['name'];
if($_FILES['filename']['size'] > $maxSize)
{...
all the checks are done using this and I just want to parse all this info without the user having any control / knowledge of it at all.

It's for an image upload script which has been built already, but I want lots of differing quality thumbnails to be generated, but the current code keeps asking the user to input size variables and path details to upload a file from their local machine.

View Replies !
Script Works Local But Not On The Server.
I found a script to display a simple photo gallery with dynamic thumbnails. I modified the script to make it save the photo thumbnails. It works perfect here in my computer but when i upload to my hosting it doens´t seem to work. Code:

View Replies !
Server And Local Time Difference
i've been trying to make my own plugboard but i've encountered a problem. Quote:

$date = date("Y-m-d h:i a", $timestamp);

to manage the click count i use $timestamp to make a unique id for each link. and the only way to convert $timestamp to Y-m-d h:i a format is to use the viarable $date. but the problem is there is a +13 hours difference between my time and the servers time.

View Replies !
Local Apache Server Error, But Ok When Hosted
I have just used a script that includes the first line

session_start();

On my computer where I have apache php and mysql installed I get the error:

Warning: session_start(): open(/tmpsess_4e8a9cf51a21ab1c9fe26630d5446262, O_RDWR) failed: No such file or directory (2) in c:serverapachehtdocsmaindex.php on line 2

But when I upload it to my host the page works without errors. Is there a problem with my apache setup or is it a php thing?

View Replies !
Time Different Between My Apache Server And My Local Clock
I actually have two questions:

1. I try to get current time, but the time I got is 1 hour different from my
local time. I assume it is caused by Time Zone. So is there any easy way to
fix this? I assume that I can first get the Time Zone of the server by using
the T option in date, and then using my local Time Zone to calculate the
difference. But I am wondering if there is some buil-in function to do it.

2. I found out this also today while workng on the same project. My apache
clock is 10 mins slower than my local clock. Any suggection to calibrate the
apache server clock (I don't own the server)?

View Replies !
Transferring A MySQL Database From Local PC Onto An ISP Server
If I have an MySQL database on my local w2k, how do I transfer it onto my
ISP server?
The ISP gave me the name of an empty MySQL database they set up for me, the
username and the password with no further explanations.
I came here from ASP/Access where I was just uploading a mdb file into my
webspace.
But with MySQL there should be a different procedure,

View Replies !
Can't Connect To Local MySQL Server Through Socket
I created a test web form, that successfully input the data into my test database.  However, today I created a second form, added the layout code, putting the layout and mysql connection details into a php include code. 

These are the only changes I have made, apart from field names etc, but today, I get the following error message:

QuoteWarning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/fhlinux177/f/further-flight.co.uk/user/htdocs/napsters/enter.php on line 50

Warning: mysql_query(): A link to the server could not be established in /home/fhlinux177/f/further-flight.co.uk/user/htdocs/napsters/enter.php on line 50

Your nap has been added to the database. Good Luck!
I checked, but the nap hasn't been added to the database.

I use the code I found on phpmac.com.  It currently looks like this: Code:

View Replies !
Can't Connect To Local MySQL Server Through Socke
What does this mean. The code below is where its occuring:

Error retrieving records adam: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Code:

View Replies !
Upload From Local Host To Server Using Ftp Functions
On my website I upload files from local computer to my server using FTP functions in PHP. It all works perfectly when I run the script from my pc, but once it s on the server it can t find the file. ftp_put(): error opening C:Documents and SettingsAlexanderDesktop r1_1.jpg

I guess it happens cos it tries to find it on the server not on my PC. The question is, how can I point it to my pc, not server. Or how can I make it copy files from my local computer to the server while running from the server!

View Replies !
How Do I Set Up My Own Local Server On My Laptop To Test Website?
How do I set up my own local server on my laptop to test PHP website?

I was given some advice by a pro ecommerce manager who said that it would be wise to test a php/ecommerce website onto my laptop first before uploading in case there are any problems which would be a lot easier to rectify locally rather than on the web host.

View Replies !
Sending Attachment Form Local Drive With Mail()
With them help of newsgroups I created a form that makes it possible to sent
an email with an attachement thats on the internet.. How can i attache a
file thats on the users hard drive? ....

View Replies !
Search And Replace - Download The Images To The Local Server
im developing a script which basically searches and replaces strings on
remote sites and spews them out on the local server, im having a problem or
two with making images come out right, i dont want to download the images to
the local server, i simply want them to grab them from the remote server

in addition, i want all links to link through the script that is grabbing
the site, heres the code so far: Code:

View Replies !
Parse Error - Working Local Lan Linux Server
I have just setup my website with a new linux hosting service. I have
copied over my scripts and the jpgraph (the stable version) files from my
working local lan linux server. The hosting service runs PHP 4.3.9 and I
keep getting parse errors like this-

Parse error: parse error, unexpected '=' in
/home/fhlinux199/s/mydomain.org.uk/user/htdocs/jpgraph/jpgraph.php on line
1100

when I look at the content of jpgraph.php it is just fine

$valid_formats = array('png', 'jpg', 'gif');

prior to this it gave me a similar error with an invalid single quote at

$this_>background_image = $aFileName;

View Replies !
Download Files From Remote Server To Local Webserver
I am trying to create a php page whereby people can download files from a remote server to their own server (to update their webdirectory with updated files/images etc). So for example one php page (e.g. update.php) should be able to download files from a remote server to a specific directory on their local webserver. Is this possible?

View Replies !
Cannot Make Connection To Local MySQL Server From Within Dreamweaver.
I am using OS X and Dreamweaver MX. I am trying to make a connection
to the MySQL Server from within Dreamweaver using the Applications
panel and clicking on the "+". A window opens asking for:
Connection Name: Apress
MySQL Server: localhost
User Name: apress
Password: xxxxxx
Database (Select):
When I click select so the Dreamweaver can browse to the databases in
MySQL the connection is not being made because Dreamweaver cannot find
the MySQL Server. I think that "localhost" is wrong even though I am
using the APRESS book: PHP Dreamweaver MX 2004 and it says to use
localhost. MySQL and PHP are on my local machine. I am NOT using a
remote machine. I used phpMyAdmin to create the databases.

View Replies !
Date Function On Local Server To Remote Host
This little combo was giving me Sunday, April 30 on my local server and Thursday, April 1 on my remote host, and I can't for the life of me figure out why. I could swear it used to work. PHP Code:

$today = gmmktime(0,0,0,date('m,d,Y',gmmktime()));
echo gmdate('l, F j', $today);

(The first function gives me a "midnight" time stamp, so all dates put into the db, and compared to it, are consistent). When I rewrote it thus, it worked fine on both hosts:
PHP Code:

$m = date('m',gmmktime());
$d = date('d',gmmktime());
$y = date('Y',gmmktime());
$today = gmmktime(0,0,0,$m,$d,$y);

Any idea what the heck is going on?

View Replies !
PHP Warning: Mysql_connect(): Can't Connect To Local MySQL Server
PHP Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/*****/public_html/mysqlconnection.php on line 2

whats this error mean?

View Replies !
Timestamp On Local Win2k Server Returns 1970
I have apache running on a win2k machine. When I try to use time(); or
date();, I get the 01-01-70 returned. Must be a setting in the apache
config, but where?

View Replies !
How To Automatically Upload Data From Mysql Database Local Server To Web
Please any one help me to provide php code to automatically upload data from mysql database local server to web mysql database.

View Replies !
Making A Database Backup To Local Server And Upload Files To Another?
I want to make a script that backups the *.frm and *.MYD files to my server and I also want to upload those files to another server via FTP? I have a copy of the database files in the directory, that works fine. But my ftp part doesn't! PHP Code:

View Replies !
Redirect Page On Remote Web Host When Local Server Is Offline
Hope some one can help . I have my web site hosted on powweb (my remote web host)and I want a user to be redirected when they access my local server through a link on my remote web site to another page on my remote web site when my local server is offline.

View Replies !
Warning: Mysql_connect(): Can't Connect To Local MySQL Server Through Socket
A friend sent me a PHP script he uses to manage data. He wants me to do some minor changes on some of the tables. He sent the binaries , the database dump and the php files in a tar file. I set up a database for testing on my server. I ftp'd the php files to my server. When I try to access any of the php files I get this...


Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in /home/content/m/e/n/menlo/html/pmtool/goremote/common/CommonLib.php on line 130
Failed to connect to the database ..!

Do I need to do something with the database dump?

View Replies !
Error: Mysql_query(): Can't Connect To Local MySQL Server Through Socket
Any idea what it is:

mysql_query(): Can't connect to local MySQL server through socket '/usr/local/mysql-5.0/data/mysql.sock' (2)

i am calling a function in another page using include at the top of the page to get a connection to the database Code:

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 501 Syntax Error
When I try this under windows :

mail("User <user@example.com>",$subject, "", $headers);

I get this error :

Warning: mail() [function.mail]: SMTP server response: 501 Syntax error,
parameters in command "RCPT TO:<User <user@example.com>>" unrecognized
or missing in

It seems to add it's own <> characters. If I run the same script under Linux it works fine !?

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 501 5.5.4 Invalid Address
I receive this error:


PHP Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in D:clientsebiblecommentary.comconcordia-seminary.caconcordia-seminary.ca\_demo
egister.php on line 464

Both of my mail() uses fail, and I'm not sure why. I've followed the same syntax before on this my server and not had a problem.

My code is below: ....

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 550 5.7.1
I'm making e-mailing with php script and i setup mailtraq mailserver this thing is just a lil confusing to me first thing i want to know if i can use apache instead of this as mail server second when i wrote my script with that mail function i received an error this is it :

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for monalisa20042006@yahoo.com in D:wampwww1stmail.php on line 2

what's that mean if this means that the mail server not configured right...SO third how to use or configure this server to use as my mail server. Code:

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 553
my php.ini mail section is setup as follows:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

then in my php script:
<?php
mail("joecool@hotmail.com", "Testing", "Line 1
Line 2
Line 3", "From: tom@hotmail.com") or die("email error");
?>

i have also run mercury mail but i keep getting this error:

Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in C:Program Filesxampphtdocsest.php on line 2

on all tutorials that i went, the mail function is written this way what is wrong?

View Replies !
SMTP Server Response: 503 This Mail Server Requires Authentication
I get this any time I try to send an email to someone that IS NOT in the domain of the company:

Warning: mail() [function.mail]: SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server. in corpevent.php on line 21

I have it setup like this (I removed the email address domain...but its correct in the code):

// INI Settings //
ini_set(sendmail_from,"info@domain.com");
ini_set(SMTP,"mail.domain.com");
ini_set(smtp_port,"25");

$headers  = "MIME-Version: 1.0";
$headers .= "Content-type: text/html; charset=iso-8859-1";
$headers .= "From: info@domain.com";

$to = $_POST['txtEmail'];
mail($to,"Your Email",$theEmail,$headers);

Why am I not allowed to send an email to anyone that doesn't have a "domain.com" at the end of the email?

View Replies !
E-mail From Linux Server But Not Windows Server
The following one-liner sends mail from a Linux server but not from their Windows server.

mail ("admin@mydomain.com", "Subject", "body");

What do I need to check / change, please?

View Replies !

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