1
chamb1
Mailing from xoops on windows machine...
  • 2005/5/12 17:02

  • chamb1

  • Just popping in

  • Posts: 3

  • Since: 2005/5/12


I am sorry to ask this as I am sure it has been answered/addressed by now...but I have made an honest attempt to figure it out myself...to no avail....thus, my question...

I cannot seem to get any mail function to work on my server (local server running XOOPS 2.0.9.2, Apache 2.0.52, PHP 5.0.3, MySQL 4.0.24-nt, and Windows XP) In addition to this, I have installed phpmailer (the two class files are in my php directory (c:\php\) which I use sucessfully for form submission on my site. I also have installed exim (with cygwin) and that functions nicely.

With Xoops, i have tried PHP mail, sendmail, SMTP and SMTP_auth...with no luck. I have a smtp server that needs a username/password, so i am focusing on trying smtp_auth. I have checked and rechecked for typos in the username or password.

When i put XOOPS in PHP debug mode, i get an error saying that it couln't send the mail and then at the bottom of the screen it says:

Warning [PHP]: fputs(): supplied argument is not a valid stream resource in file c:\php\class.smtp.php line 146
Warning [PHP]: fgets(): supplied argument is not a valid stream resource in file c:\php\class.smtp.php line 1018
Warning [PHP]: fputs(): supplied argument is not a valid stream resource in file c:\php\class.smtp.php line 146
Warning [PHP]: fgets(): supplied argument is not a valid stream resource in file c:\php\class.smtp.php line 1018


I looked at lines 146 and 1018 and there is nothing outstanding to me there.... ?

So to summarize, i can't register new users and i can't contact existing users (not that there are any, this is a brand new install! :)

Any help, suggestions, comments would be GREATLY appriciated...I am at wits end here...Thanks in advance!

Jim

2
chamb1
Re: Mailing from xoops on windows machine...
  • 2005/5/12 21:41

  • chamb1

  • Just popping in

  • Posts: 3

  • Since: 2005/5/12


Is there any other specific information i can provide to help with answering my questions?

Thanks!

jim

3
chamb1
Re: Mailing from xoops on windows machine...
  • 2005/5/13 5:21

  • chamb1

  • Just popping in

  • Posts: 3

  • Since: 2005/5/12


OK...well I figured it out! :) So i will now describe what i did to get SMTP Auth / XOOPS to send emails from a windows box....it is SIMPLE! (and i wish someone else had posted this simple fix)

I have an SMTP that required authentication...but also my smtp server has ports besides 25 open...so i choose to connect to the server on 2525 and simply edited the class.smtp.php and class.phpmailer.php files - i changed the port 25 to 2525 and entered my username and password in the appropriate places...if you do a simple text search you will find them with no problem!

good luck!

jim

Login

Who's Online

154 user(s) are online (95 user(s) are browsing Support Forums)


Members: 0


Guests: 154


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits