Sending Emails From Localhost ?

This is a discussion on "Sending Emails From Localhost ?" within the PHP Forum section. This forum, and the thread "Sending Emails From Localhost ? are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 5th, 2007, 10:55
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
Sending Emails From Localhost ?

im writing a script that sends an email as part of the registration process, and testing it is prooving problematic .... does anyone know if its possible to test this mail function locally, or do i have to upload first?

Im using WAMP btw, I think i might have to change the php.ini file... but not sure exactly what needs editing

Any help appreciated
Reply With Quote

  #2 (permalink)  
Old Jan 5th, 2007, 14:02
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Sending Emails From Localhost ?

Yes, you're right about php.ini. You're probably not running a local mail server on your windows box so you'll need to change the smtp parameters that show up in a phpinfo() test to refer to a server that you can use.
Reply With Quote
  #3 (permalink)  
Old Jan 5th, 2007, 15:35
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to ukgeoff
Re: Sending Emails From Localhost ?

Are you not able to upload to a test directory within your hosting facility and have the script send the emails generated to you?

That way you will be testing in the actual environment you are going to use but not in a way that is open to the world.
Reply With Quote
  #4 (permalink)  
Old Jan 9th, 2007, 21:39
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Sending Emails From Localhost ?

Thats what i think im going to do tbh, i know what "should" need changing in the php.ini... but its playing funny buggers .... remote hosts ftw tbh
Reply With Quote
  #5 (permalink)  
Old Jan 19th, 2007, 21:03
New Member
Join Date: Jan 2007
Location: Hyderabad
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Sending Emails From Localhost ?

Hi Guys

i dont know hat r the changes to be made in the php.ini file can u give me good idea for me

and then i need a script for directory listing r as a www.crigslist.org site can u help me to get as a free one
Reply With Quote
  #6 (permalink)  
Old Jan 19th, 2007, 21:09
New Member
Join Date: Jan 2007
Location: Hyderabad
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Sending Emails From Localhost ?

Hai


i am searching for the craigslist clone site.. can u help me to get that one as free one.. if u r having can give me ... selvendran26@gmail.com is mail id.. i need a directory listing scripts can u reply me
Reply With Quote
  #7 (permalink)  
Old Jan 20th, 2007, 03:05
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Sending Emails From Localhost ?

Quote:
Originally Posted by selvamaxy View Post
i need a directory listing scripts can u reply me
<?php
$fh = opendir(".");
while ($has = readdir($fh)) print "$has<br>\n";
?>
Reply With Quote
Reply

Tags
mail

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
http://localhost/file.php azilaka PHP Forum 16 Jul 13th, 2007 21:56
(localhost) cookie weirdness Donny Bahama PHP Forum 4 May 29th, 2007 14:44
'ODBC'@'localhost' error Sqrlgrl Databases 8 Nov 21st, 2005 13:27


All times are GMT. The time now is 18:41.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43