Not logged in. · Lost password · Register
Forum: Support General support RSS
Using SMTP email
Getting error when trying to send mail...
Page:  1  2  next 
singingcrane #1
Member since Oct 2005 · 6 posts · Location: Portland, OR - USA
Group memberships: Members
Show profile · Link to this post
Subject: Using SMTP email
Ok......I have set up the email info for using the SMTP email function as follows:

SMTP server  :  mail.mydomain.net
SMTP sender address  :  webmaster@mydomain.net
Username for SMTP AUTH  :  webmaster@mydomain.net
Password for SMTP AUTH  :  ********

My first question is do I even have this info correct? I assume these are the same settings that I use for my email client...I am a little unsure as to why I am still getting an error when I try to send email to a user. I do not think that I am able to use the PHP mail function (nothing happens with this when I try to send mail...al I get is a blank screen), unless my host has that capability, then I would have to look that up.

When I send an email with my SMTP settings, I get an error that says the email could not be sent, and when I look at the log all it says is User_error for the email I just tried to send with no additional info.

Anyone able to help me with this? I really would like to get this forum posted to the public without having to notify everyone that the email function isn't working yet.

Any help greatly appreciated!!

S.C.
Avatar
Yves (Administrator) #2
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Yes, this is the same as you put in your e-mail client.

Can you please give me the exact error message from the error log file?
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
singingcrane #3
Member since Oct 2005 · 6 posts · Location: Portland, OR - USA
Group memberships: Members
Show profile · Link to this post
Sure......

16:23:54    1     Dresden       64.221.114.253         email_user 2 error

'2' in the error is for my own login and email address

Thanks!
Avatar
Yves (Administrator) #4
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
This is the access log (board log). There's also an error log file, right next to it. That one obviously includes the actual error message.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
singingcrane #5
Member since Oct 2005 · 6 posts · Location: Portland, OR - USA
Group memberships: Members
Show profile · Link to this post
Forgive me...I am a bit new to this.....I am a bit lost...is the error log file on the server itself? Do I need to download the file or is it availiable for viewing in the Control Panel (the reason I ask is because the only log I can seem to view is the 'Show Log' link).

BTW....Thanks for your quick response and help so far!! I really appreciate it.

Very nice program too!
Avatar
Yves (Administrator) #6
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
As I said, it's right next to it. There's some files like "board-YYYY-MM-DD.log" and some like "error-YYYY-MM.log". What I need is the second one. Should be "error-2005-10.log" in this case. No, there's no web interface to the error log, you'll have to access that file on your disk. (Or download it via FTP or however you can access your webspace.)
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
singingcrane #7
Member since Oct 2005 · 6 posts · Location: Portland, OR - USA
Group memberships: Members
Show profile · Link to this post
Got it......here's the error for an email I just tried to send:

03.10.2005 16:23:54 - User 1 Dresden - forum.php?req=cp - 64.221.114.253
    SMTP error: No authentication method (LOGIN or CRAM-MD5).
    Backtrace:
    * bb_lib/mail.lib.php : 126 : errorlog(0 args)
    * bb_lib/cp.inc.php : 862 : notifyuser(0 args)
    * unb-1.5.3-a/forum.php : 146 : require(1 args)

03.10.2005 16:23:54 - User 1 Dresden - forum.php?req=cp - 64.221.114.253
    The message could not be sent.
   
    Backtrace:
    * bb_lib/cp.inc.php : 2579 : errorlog(0 args)
    * unb-1.5.3-a/forum.php : 146 : require(1 args)
Avatar
Yves (Administrator) #8
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Ok, here we have it. You mail server somehow isn't compatible with my SMTP AUTH knowledge. So with this mailserver, you won't be able to send out mails.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
singingcrane #9
Member since Oct 2005 · 6 posts · Location: Portland, OR - USA
Group memberships: Members
Show profile · Link to this post
Bummer......ok, so I guess that goes for using the PHP mail as well.....yes?

I suppose I ought to contact my host....they are compatible with nearly eveything else....bummer this doesn't work :P
Avatar
Yves (Administrator) #10
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
PHP mail() is something different. It doesn't use an SMTP socket connection but sends the mail out by starting a local MTA process. This should actually work on any well-configured Linux host. But I can't determine if and how well it does work, as opposed to SMTP where I can control every detailed aspect (as you have seen).

Never had any authentication problems on several hosts. Maybe they're not so compatible after all? ;) You could open an SMTP connection yourself (see "google rfc smtp" on how to speak it) and see what it responds to your EHLO command. That reply contains a list of supported AUTH methods.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
singingcrane #11
Member since Oct 2005 · 6 posts · Location: Portland, OR - USA
Group memberships: Members
Show profile · Link to this post
I am assuming that the PHP mail() does not work on my server because when I send an email, nothing happens...I only get a blank page (and in the browsers footer it actually says 'Done' like it has finished loading whatever page it needed).

I think I may contact my host and find out if they are able to upsdate their systems for support of this forum and see if they can be directed your way for information.

One more question....since emailing doesn't seem to work for me, is there a way to disable it temporarily? Or do you plan on having that option available in future versions?

Thanks again!
Avatar
Yves (Administrator) #12
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by singingcrane:
I am assuming that the PHP mail() does not work on my server because when I send an email, nothing happens...I only get a blank page (and in the browsers footer it actually says 'Done' like it has finished loading whatever page it needed).

Enable the displaying of PHP error messages on that server. Then you'll get a precise error message of what happened when calling mail(). Otherwise no error is displayed. If it was a fatal error, the script will stop with no output. Alternatively, you can read your PHP error log if your web hoster can supply you with that.

One more question....since emailing doesn't seem to work for me, is there a way to disable it temporarily? Or do you plan on having that option available in future versions?

No I haven't.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Searlnetwork #13
Member since Nov 2005 · 8 posts · Location: Iowa, United States
Group memberships: Members
Show profile · Link to this post
Subject: Same Problem
I get the same error message but when i checked my log this is what i have:

02.11.2005 16:38:08 - User 0  - forum.php?req=register -
    SMTP error: couldn't open socket
    Backtrace:
    * bb_lib/mail.lib.php : 125 : errorlog(1 args)
    * bb_lib/register.inc.php : 46 : notifyuser(6 args)
    * bb_lib/register.inc.php : 208 : sendvalidationmail(2 args)
    * s board/forum.php : 208 : require(1 args)

02.11.2005 16:38:08 - User 0  - forum.php?req=register -
    SMTP error, e-mail could not be sent.
   
    Backtrace:
    * bb_lib/register.inc.php : 250 : errorlog(1 args)
    * s board/forum.php : 208 : require(1 args)
Tarczyn (Guest) #14
No profile available.
Link to this post
Subject: the same problem
Hello,

I have exactly the same problem. I'm using UNB 1.6.4. The default mail server won't worked for some time. So I've typed other:

SMTP server  :  smtp.gmail.com
SMTP sender address  :  forum.mydomain@gmail.com
Username for SMTP AUTH  :  forum.mydomain@gmail.com
Password for SMTP AUTH  :  ********

When I will switch to php mail, everything should be ok - no errors, but message will not come to receiver.

I've tried with another mail server, but the same errors.

Here is log:

19.03.2011 12:55:21 - User 2 Admin - @cp - xxx.xxx.xx.xx (IP)
SMTP error: couldn't open socket
Backtrace:
  • forum/unb_lib/mail.lib.php : 140 : UnbErrorLog("SMTP error: couldn't open socket")
  • forum/unb_lib/cp.inc.php : 1498 : UnbNotifyUser(18, 1, "mail.usermail.subject", array(1), "mail.usermail.body1", array(5), "admin556@gmail.com")
  • www/forum/forum.php : 114 : require("/opt/www/forum/unb_lib/cp.inc.php")

Can somebody help me with it?
Avatar
Yves (Administrator) #15
User title: UNB developer & webmaster
Member since Jan 2004 · 3855 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
"Couldn't open socket" means that you have no network connectivity to the SMTP server you provided. That may mean that the name does not exist (not sure about that), but it certainly means that the server does not accept connections from you or anybody. Solution: Check your local firewall or enter the correct hostname or use another provider.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Page:  1  2  next 
Go to forum
This board is powered by the Unclassified NewsBoard software, 20120620-dev, © 2003-2011 by Yves Goergen
Page created in 212 ms (156.5 ms) · 122 database queries in 125.3 ms
Current time: 2013-05-18, 07:08:48 (UTC +02:00)