Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

smtp server error!

Asked Modified Viewed 2,727 times
F
fastboy__
F
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

hi i have a fusion website , only my smtp give's a error , can someone help me please ?


Warning: fputs(): supplied argument is not a valid stream resource in C:\wamp\www\includes\smtp_include.php on line 147

Warning: fgets(): supplied argument is not a valid stream resource in C:\wamp\www\includes\smtp_include.php on line 1025

i don't know what to do :( please help me
Edited by fastboy__ on 18-02-2007 17:23,
0 replies

9 posts

W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

Likely a misconfiguration of either server or your smtp settings.

This may help:

http://www.php-fusion.co.uk/forum/vie...d_id=12370
0 replies
F
fastboy__
F
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

do i have to open port 25 ?
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

You provide too little information. Do you run your own server?
0 replies
F
fastboy__
F
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

yes on my own server
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

If you take up the task on running your own server, then you should also take up the task on configuring it.

Did you configure your server to use smtp in php.ini?
0 replies
F
fastboy__
F
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

no i don't know how i do that.. can you tell me that ?
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

Extract from php.ini:

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Syslog]
; Whether or not to define the various syslog variables (e.g. $LOG_PID,
; $LOG_CRON, etc.).  Turning it off is a good idea performance-wise.  In
; runtime, you can define these variables by calling define_syslog_variables().
define_syslog_variables  = Off

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

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

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = "W:\plugins\SendMail\sendmail.exe -t"

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_paramaters =


If you don't run a mail server but just wish to use your normal mail provider, then you need to fill in:

; For Win32 only.
SMTP = yourmail.provider.com

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


It's really not related to PHPFusion but general to setting up and running a server.
0 replies
F
fastboy__
F
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

stil doesn't work! :( same error :

Warning: fputs(): supplied argument is not a valid stream resource in C:\wamp\www\includes\smtp_include.php on line 147

Warning: fgets(): supplied argument is not a valid stream resource in C:\wamp\www\includes\smtp_include.php on line 1025

on line 147 it say's : fputs($this->smtp_conn,"AUTH LOGIN" . $this->CRLF);

on line 1025 it say's : while($str = fgets($this->smtp_conn,515)) {
if($this->do_debug >= 4) {
echo "SMTP -> get_lines(): \$data was \"$data\"" .
$this->CRLF;
echo "SMTP -> get_lines(): \$str is \"$str\"" .
$this->CRLF;
}
0 replies
W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

Either your server is misconfigured, you use wrong connection data, firewall is blocking or your mail provider isn't using port 25.

Check your connection data set up in the mail software you normally use.

If that doesn't help, then i suggest that you seek help from WAMP like:

http://www.wampserver.com/phorum/sear...ch.php?f=2
0 replies

Category Forum

General Discussion

Labels

None yet

Statistics

  • Views 0 views
  • Posts 9 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

W
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
F
F
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet