SMPT disabled, how to enable it ?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

SMPT disabled, how to enable it ?

Postby w3irdo » 24. June 2007 18:55

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.
w3irdo
 
Posts: 12
Joined: 24. June 2007 18:41

Postby Rhodesia » 24. June 2007 23:15

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
User avatar
Rhodesia
 
Posts: 13
Joined: 31. May 2006 05:02

Postby w3irdo » 25. June 2007 05:37

you are a great help. i will try later. this must be the problem
w3irdo
 
Posts: 12
Joined: 24. June 2007 18:41

Postby w3irdo » 26. June 2007 19:12

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
w3irdo
 
Posts: 12
Joined: 24. June 2007 18:41

Postby kschroeder » 27. June 2007 06:37

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.
kschroeder
 
Posts: 254
Joined: 11. May 2007 13:33

Postby w3irdo » 27. June 2007 06:44

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 ?
w3irdo
 
Posts: 12
Joined: 24. June 2007 18:41

Postby kschroeder » 27. June 2007 06:45

So what entries do you have here now:

Code: Select all
[mail function]
; For Win32 only.
SMTP = smtp.yourisp.com
smtp_port = 25
kschroeder
 
Posts: 254
Joined: 11. May 2007 13:33

Postby w3irdo » 27. June 2007 07:02

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

still default.
what do i have to change to ?

i running on localhost
w3irdo
 
Posts: 12
Joined: 24. June 2007 18:41

Postby w3irdo » 27. June 2007 07:06

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.
w3irdo
 
Posts: 12
Joined: 24. June 2007 18:41

Postby w3irdo » 01. July 2007 17:22

hi,

anyone can help ?

:)
w3irdo
 
Posts: 12
Joined: 24. June 2007 18:41

Postby lyntuan » 02. July 2007 13:27

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.
Last edited by lyntuan on 26. December 2008 13:58, edited 1 time in total.
lyntuan
 
Posts: 104
Joined: 08. November 2006 00:21

Postby interloper » 14. November 2007 13:40

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.
interloper
 
Posts: 1
Joined: 14. November 2007 13:18


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 101 guests