Page 1 of 1

SMPT disabled, how to enable it ?

PostPosted: 24. June 2007 18:55
by w3irdo
HI,

i just installed XAMPP. All settings are enabled except SMPT ( disabled ), how to enable it ? i am under router and i had port forwarded port 25.
is there anymore things to be done ? I also tried closing my firewall.

PostPosted: 24. June 2007 23:15
by Rhodesia
are you trying to use the mercurymail as the server?

If not, then you can specify any SMTP host in the php.ini file

opeen that file and look for;
[mail function]
; For Win32 only.
;SMTP = localhost
;smtp_port = 25


change it to

[mail function]
; For Win32 only.
SMTP = smtp.yourisp.com
smtp_port = 25


obviously, yourisp.com must be a valid SMTP server.

If you are trying to use mercurymail as the mail server then follow this;
http://www.pmail.com/downloads_maine_t.htm

PostPosted: 25. June 2007 05:37
by w3irdo
you are a great help. i will try later. this must be the problem

PostPosted: 26. June 2007 19:12
by w3irdo
hi,

i faced a new problem.

i have this error when trying to send to a email under address of yahoo.com and hotmail.com.

Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in D:\Applications\xampp\htdocs\checkout.php on line 72

How to solve this? i believe even on localhost, i can still send it out of localhost. Do i have to configure anything on mercury or something ?

:D

PostPosted: 27. June 2007 06:37
by kschroeder
I guess you entered yahoo.com or hotmail.com as your smtp server?
This is not allowed, because this would allow everybody to send as much spam as they want. You won't find any public SMTP server which relays non-local mails.

You have to create your own smtp service (if you don't already have one) or you have to send mail to your public mail account with foregoing authentication.

PostPosted: 27. June 2007 06:44
by w3irdo
hihi,

i have not done any settings to my smtp server so far.
i only tried to send mail() to a email address ending with yahoo.com or hotmail.com.

how can i do that? i was prompted with tat error above. Do i have to configue anything ?

PostPosted: 27. June 2007 06:45
by kschroeder
So what entries do you have here now:

Code: Select all
[mail function]
; For Win32 only.
SMTP = smtp.yourisp.com
smtp_port = 25

PostPosted: 27. June 2007 07:02
by w3irdo
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

still default.
what do i have to change to ?

i running on localhost

PostPosted: 27. June 2007 07:06
by w3irdo
Rhodesia wrote:are you trying to use the mercurymail as the server?

If you are trying to use mercurymail as the mail server then follow this;
http://www.pmail.com/downloads_maine_t.htm


i dled the Pegasus Mail v4.41 for Windows, 32-bit for Win98/ME/NT/2000/XP/Vista.
What is it for ? does it replace mercury or have to be run together with mercury?

i am running on localhost, trying to send mail to xxx@yahoo.com.
What do i have to configue? sry, a starter programmer here.

PostPosted: 01. July 2007 17:22
by w3irdo
hi,

anyone can help ?

:)

PostPosted: 02. July 2007 13:27
by lyntuan
You can use your gmail account to send mail, but you can not do with yahoo (it need pop before smtp, so you must have paid yahoo account).
From gmail account, you can send mail to any email address.

Please search PHPGMailer to get the suitable script.

PostPosted: 14. November 2007 13:40
by interloper
i am running on localhost, trying to send mail to xxx@yahoo.com.
What do i have to configue? sry, a starter programmer here.


Hi, i had problems sending mail using localhost (xampp) but i fix it like this:

I shut down my mercury service, so i think that you dont have to use mercury if you sending mail trough localhost, some web application or form.

I configured xampp php.ini settings, SMTP and smtp_port same as outgoing mail server for my e-mail account i recieved in my Outlook express (if you dont have configure it, because i think xampp need to use this account when sending trough localhost, dont know why).

So if your e mail account in outlook use outgoing mail server example: mail.example.com use this in php.ini settings, SMTP=mail.example.com and smtp_port=25.

If you're using gmail configure it in outlook,and your php.ini settings, but in that case use gmail smtp_port, think it's 465.