Jump to content


Photo

mail


  • Please log in to reply
8 replies to this topic

#1 marek

marek
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 18 July 2006 - 05:46 PM

I'm sure it's an easy one.
I can't use mail function. I get an error message: 
Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini.
But I work locally only. All I did was changing "sendmail_from = " in php.ini file.
Do I have to change smtp and smtp_port settings also? If so, what parameters should I give there?
Thanks
marek


#2 Tandem

Tandem
  • Members
  • PipPipPip
  • Advanced Member
  • 251 posts

Posted 18 July 2006 - 05:50 PM

To use the mail function you need an smtp server. You can either get your own, or use the one of your isp.

#3 scheols

scheols
  • Members
  • PipPipPip
  • Advanced Member
  • 113 posts

Posted 18 July 2006 - 05:51 PM

yo whats a smtp server? and how would u get one because my validate emails dont work on my forums -_-
Dont Piss me Off today

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 18 July 2006 - 05:54 PM

To use mail you'll need to point it to an actual SMTP server. If you dont have an SMTP installed on your local machine it will not send an email. See if you can find a public SMTP server which does require authentication in order to send an email, as mail does support this. You shouldn't have to change the port number as SMTP servers run on port 25

#5 marek

marek
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 18 July 2006 - 06:01 PM

Ok. So I changed SMTP settings for the same as in MS Outlook. I left smtp_port = 25. Restarted server.
Still doesn't work.

#6 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 18 July 2006 - 06:04 PM

Does the smtp server you are using require you to login? If it does you cannot use this SMTP Server as mail doesnt support authentication requests - loggin.

#7 marek

marek
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 18 July 2006 - 06:08 PM

Yes. My e-mail smtp server requires me to login.
So what can I do to use mail function?

#8 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 18 July 2006 - 06:11 PM

You cant use that smtp server with mail then. If you want to use that smtp server I think you'll have to use imap which allows you to login to mail servers.

#9 marek

marek
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 18 July 2006 - 06:14 PM

So I guess I just skip mail function for some time
thanks anyway
marek




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users