Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 11-22-2007, 10:50 PM SMTP error
Skilled Talker

Posts: 65
Trades: 0
i am using easyphp and i do not have mail server of my own
when i created a script to sent the mail the error

Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

is shown. please tell me how to solve this and is it possible that i send the mail by using yahoo or google as the mail server?
leolim is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-23-2007, 01:15 AM Re: SMTP error
Moxxnixx's Avatar
King Spam Talker

Posts: 1,174
Name: Lance
Location: Virginia Beach
Trades: 0
I'm assuming you have this installed on a Windows box?
If so, you need to go into your php.ini file and change...
Quote:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
Change localhost to the smtp settings of your ISP.
It's usually something like smtp.yourisp.net or mail.yourisp.net.

Note -
Some ISPs don't allow this without authentication, but try it anyway.
__________________
Get your facts first, and then you can distort them as much as you please. - Mark Twain

Please login or register to view this content. Registration is FREE
---

Please login or register to view this content. Registration is FREE

All My Sites Are Proudly Hosted @
Please login or register to view this content. Registration is FREE

Moxxnixx is offline
Reply With Quote
View Public Profile Visit Moxxnixx's homepage!
 
Old 11-23-2007, 02:03 AM Re: SMTP error
Junior Talker

Posts: 4
Name: michael oyeyinka
Trades: 0
Quote:
Originally Posted by leolim View Post
i am using easyphp and i do not have mail server of my own
when i created a script to sent the mail the error

Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

is shown. please tell me how to solve this and is it possible that i send the mail by using yahoo or google as the mail server?


please i don't have any solution to this problem because i have same problem while trying to use phpmailer on my server to send mail.
please somebody got to give us a lasting solution to this configuration problem.
|How do i configure my smtp .................................................p lease
jahtex2000 is offline
Reply With Quote
View Public Profile
 
Old 11-23-2007, 02:32 AM Re: SMTP error
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Quote:
please i don't have any solution to this problem
Moxxnixx just gave you the solution.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 11-26-2007, 02:23 AM Re: SMTP error
Skilled Talker

Posts: 65
Trades: 0
in my php.ini i only found
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from =
me@localhost.com

should i add this line myself?
smtp_port = 25

and could i sent the mail without a mail server?
leolim is offline
Reply With Quote
View Public Profile
 
Old 11-26-2007, 02:50 AM Re: SMTP error
Moxxnixx's Avatar
King Spam Talker

Posts: 1,174
Name: Lance
Location: Virginia Beach
Trades: 0
Yes, add that line.

And yes, if your ISP allows it.
__________________
Get your facts first, and then you can distort them as much as you please. - Mark Twain

Please login or register to view this content. Registration is FREE
---

Please login or register to view this content. Registration is FREE

All My Sites Are Proudly Hosted @
Please login or register to view this content. Registration is FREE

Moxxnixx is offline
Reply With Quote
View Public Profile Visit Moxxnixx's homepage!
 
Old 11-28-2007, 01:52 AM Re: SMTP error
Skilled Talker

Posts: 65
Trades: 0
could you explain to me what is the meaning of

Yes, add that line. <-- is this line refer to smtp_port = 25
And yes, if your ISP allows it. <-- what does this actually means?


i need to ask question like this to clarify myself as this enviroment is new to me and there is a lot of things to be learn.

thanks
leolim is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to SMTP error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.36868 seconds with 12 queries