Jump to content

how to send emails from localhost with mail()


Recommended Posts

i've tried to send emails from localhost. but its showing some error like... [quote]Warning: mail() [function.mail]: Failed to connect to mailserver at "192.168.110.30" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\wamp\www\mailsender.php on line 55[/quote]

actually in my php.ini file contains...

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

; For Win32 only.
sendmail_from = info@info.com


whats the problem???
im running apache under windowzxp box...


Thank you,
Karthi Keyan.

Link to comment
Share on other sites

[quote author=hackerkts link=topic=99143.msg390290#msg390290 date=1151800132]
You have to make sure you had a working mail server (SMTP).
[/quote]

LOL i know its a SMTP mailserver prob... its not working.... i asked how to solve this.... i hope you never read this [quote]Warning: mail() [function.mail]: Failed to connect to mailserver at "192.168.110.30" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\wamp\www\mailsender.php on line 55[/quote]

[quote]Hackers must have a skill to solve probs... LOL[/quote]

Any one know? how to slove? Please help me...
Link to comment
Share on other sites

I saw the warning..
The problem is with the mail server that's why I suggest you to make sure you had it working.  :D

Hmm..
Try changing
SMTP = 192.168.110.30
To
SMTP =  localhost

Btw.. Which mail server you using ?
P.S : hacker is just a nick lolz  ;D
Link to comment
Share on other sites

[quote author=hackerkts link=topic=99143.msg390431#msg390431 date=1151835428]
I saw the warning..
The problem is with the mail server that's why I suggest you to make sure you had it working.  :D

Hmm..
Try changing
SMTP = 192.168.110.30
To
SMTP =  localhost

Btw.. Which mail server you using ?
P.S : hacker is just a nick lolz  ;D
[/quote]


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

; For Win32 only.
sendmail_from = info@info.com

still having problem.....
Link to comment
Share on other sites

what port is your router set to?

what mail server useing?

router must redirect smtp to mail server ip.

smtp=router ip to the mail server.

smtp_port= router smtp port for the mail server.

send_mail_from=mail server for admin like admin@whatevr.com.
Link to comment
Share on other sites

[quote author=redarrow link=topic=99143.msg390439#msg390439 date=1151836696]
what port is your router set to?

what mail server useing?

router must redirect smtp to mail server ip.

smtp=router ip to the mail server.

smtp_port= router smtp port for the mail server.

send_mail_from=mail server for admin like admin@whatevr.com.
[/quote]

let me collect those informations...
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.