Killersites Community: WAMP, email function doesn't connect - Killersites Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

WAMP, email function doesn't connect When I tried to use the email function, it could not connect

#1 User is offline   mclenale 

  • View blog
  • Group: New Members
  • Posts: 1
  • Joined: 21-September 11

Posted 21 September 2011 - 09:50 PM

I have looked through other posts to find this problem but it seems that no one else has had it.

I know some HTML and CSS and got the web programmer video set yesterday. After installing WAMP, most of it has been very smooth and accessible; when I tried using the "email()" function yesterday, I received errors.

I am running the latest php and everything else as I just got it yesterday and all other code runs fine.

The full error is:
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\practicephp\emailstripped.php on line 3

Please help.

Thanks.
0

#2 User is offline   Ben 

  • View blog
  • Group: Administrators
  • Posts: 5,409
  • Joined: 19-December 08
  • LocationChico, CA

Posted 21 September 2011 - 11:17 PM

1) Using the mail() function from your local computer can be a bit tricky, and usually involves setting your smtp/smtp port settings within your php.ini file. I usually suggest that people test this functionality on a live server, rather than through WAMP or similar, so you don't run into this problem.

2) Not you are missing a "s" in the "killersites": http:killersite.com/forums/feed/rss. If that doesn't fix the issue, post back and we can look into this further.
Benjamin Falk | Falken Creative : Twitter : KillerSites Screencast Blog
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter
0

#3 User is offline   Emmy 

  • View blog
  • Group: New Members
  • Posts: 2
  • Joined: 22-September 11

Posted 22 September 2011 - 04:29 AM

1.You need to enter the correct smtp address in your config files for mailing to work and
2.In that case, you also need your smtp mail server to be open for relay for your localhost
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users