Welcome! Log In Create A New Profile

Advanced

Trouble understanding the mail server

Posted by 77712331kuno 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Trouble understanding the mail server
October 26, 2012 01:44PM
I receive this error when I test my mail function.

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()

I am uncertain what information to put in for the mail server.
Will the settings I input be valid when the professor runs it on the UNISA servers?
Re: Trouble understanding the mail server
October 26, 2012 01:50PM
You need to change your email server configuration to connect to either an email server you setup yourself on "localhost" or if you have the interwebs you can connect to a dummy smtp server like "smtp.mailinator.com" provided by the guys at http://www.mailinator.com. Google it.
avatar
Mac
Re: Trouble understanding the mail server
October 26, 2012 02:25PM
XAMPP or EasyPHP will not send mail because it does not have a channel to the Internet (even if you are connected to the Internet). I can see in your code if it will work, so it does not have to work.

There is a post elsewhere on how to get it ti send mail, but it is too much effort. Much easier to test on a live server.
Re: Trouble understanding the mail server
October 27, 2012 06:12PM
Noted, thank you.
Sorry, only registered users may post in this forum.

Click here to login