Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: Superboy - tammikuu 19, 2005, 07:13:42 IP

Otsikko: SMTP doesn't send anything
Kirjoitti: Superboy - tammikuu 19, 2005, 07:13:42 IP
Hi,
I was using SMF with a working SMTP until I had to reinstall PHP, MySQL and Apache. Since then it hasn't worked. I don't have sendmail set up on my machine, so that wont work. Does anyone know of anything I need to set to make it work? I have tried both an authenticated and normal SMTP server. I am using PHP 4. something and Apache 2. I have SMF RC 2 installed. I will upgrade as soon as I have the time to modify the new index.template.php file, as I have made some heavy modifications to it... :)

Any help is much appreciated. :)
Otsikko: Re: SMTP doesn't send anything
Kirjoitti: Oldiesmann - tammikuu 20, 2005, 10:09:52 AP
Are you getting any error messages when you try to send mail with SMTP? Are you running Windows or Linux?
Otsikko: Re: SMTP doesn't send anything
Kirjoitti: Superboy - tammikuu 20, 2005, 11:52:57 AP
Thanks for the reply.

I don't get any error messages when trying to send email. I am running Mac OS X.3.

Although, with Coppermine, I get the error "Helo command rejected: you are not elijahg at dsl dot pipex dot com"

Thanks again!!  ;)
Otsikko: Re: SMTP doesn't send anything
Kirjoitti: [Unknown] - tammikuu 20, 2005, 12:00:46 IP
Please upgrade to 1.0.1, it has better error messages in relation to SMTP.

-[Unknown]
Otsikko: Re: SMTP doesn't send anything
Kirjoitti: Superboy - tammikuu 20, 2005, 02:22:07 IP
I will.
Otsikko: Re: SMTP doesn't send anything
Kirjoitti: Superboy - tammikuu 20, 2005, 04:48:36 IP
I have updated to SMF 1.0.1 successfully :) Thanks to all involved in this release :D

I now get the error:

2: fsockopen(): php_network_getaddresses: getaddrinfo failed: No address associated with nodename
File: /Library/WebServer/Documents/starmakers/forum/Sources/Subs-Post.php
Line: 556

Thanks for the help!
Otsikko: Re: SMTP doesn't send anything
Kirjoitti: [Unknown] - tammikuu 20, 2005, 05:40:04 IP
That means your SMTP server address is wrong.  Make sure there are no spaces before or after the domain name, and that it is correct.

You may wish to try the IP address itself.

-[Unknown]
Otsikko: Re: SMTP doesn't send anything
Kirjoitti: Superboy - tammikuu 20, 2005, 05:47:10 IP
Ah yes... ::) Thanks [Unknown], I changed it when I was trying to get it to work.

But even with a correct address, I don't get any errors and the email isn't sent. :( After trying to send the email, the forum goes straight back to the Admin page.
Otsikko: Re: SMTP doesn't send anything
Kirjoitti: [Unknown] - tammikuu 20, 2005, 08:34:02 IP
I'm not sure what to tell you.  That makes it sound like the SMTP server says "okay, I'll send it!" and then as soon as SMF goes away snickers at its friends, "hahaha... that script believed me.  What a dolt!"

See, it checks the messages that are returned, and gives an error message if any of them aren't the ones they should be.

-[Unknown]
Otsikko: Re: SMTP doesn't send anything
Kirjoitti: Superboy - tammikuu 30, 2005, 08:20:59 IP
Yea I know what you mean... It's just weird that sending of mail via Apple's Mail works fine. Is there some option in PHP to turn SMTP off...?
Otsikko: Re: SMTP doesn't send anything
Kirjoitti: [Unknown] - tammikuu 30, 2005, 11:45:45 IP
Well, do you have a username/password set for outgoing in Mail?  Sometimes it won't send if you DO specify a password.

You can also use sendmail, which uses PHP's mail settings.  Those settings are found in php.ini.

-[Unknown]
Otsikko: Re: SMTP doesn't send anything
Kirjoitti: Superboy - tammikuu 31, 2005, 02:03:41 IP
I have tried it with and without a username and password :\

I don't have sendmail installed, and I cant download it from their site. It wont untar or unzip or whoever both the archives throw up errors.

Thanks
Otsikko: Re: SMTP doesn't send anything
Kirjoitti: [Unknown] - helmikuu 01, 2005, 12:45:15 AP
Lainaus käyttäjältä: Superboy - tammikuu 31, 2005, 02:03:41 IP
I have tried it with and without a username and password :\

I don't have sendmail installed, and I cant download it from their site. It wont untar or unzip or whoever both the archives throw up errors.

Thanks

Are you trying something like this?

tar xvzf filename.tar.gz

Or...?  Are you sure this is Linux?  I don't believe PHP can do sendmail on Windows.

-[Unknown]
Otsikko: Re: SMTP doesn't send anything
Kirjoitti: Superboy - helmikuu 01, 2005, 12:00:06 IP
Yup I type tar xvzf sendmail.tar, and I get "gzip: stdin: not in gzip format"

Stuffit Expander won't work either...

I am using Mac OS X.
Otsikko: Re: SMTP doesn't send anything
Kirjoitti: [Unknown] - helmikuu 02, 2005, 06:33:19 AP
Are you sure it's a gzip?  Can you try just tar xvf?

-[Unknown]