YAFLogo

janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
11 years ago
Greetings!

I recently added (checked box) registration verification but email not sending.

YAF.NET Version: 1.9.6.1 (Date: 3/17/2012)

1. I registered (to check) and it does not send the message (tried several user registrations); names shows up in Unverified User list.

2. I am able to send email from YAF.

I would appreciate some guidance.

j

Sponsor
squirrel
11 years ago
Mail handling in YAF is run as a scheduled process -- if mails are not going out - there could be issue with application being 'shutdown' by IIS.

Do subscriptions work (watched topics) - or PM notifications?

Test email in YAF install is not handled by task scheduler of YAF as far as I know (mainly because in installer, database may or may not exist - so mail queue table might be inaccessible - so most likely test message is sent direct).

Investigate to see if PMs are sending notifications (and that notifications are turned on in host settings) and/or watched topics (subscriptions) -- if you're not getting PM notifications either, then your system is either not populating the notification table or the scheduled task is not running (ie: YAF application shutting down before queue is processed)


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
11 years ago
Thanks!!

PM, watched topics, email notifications all work.

I can send/receive email admin@myforum.com via my email client & from forum.

Did YAF Install email test. Results:

1. "YAF.UseSMTPSSL" value="false" (app.config)

SMTP Test Details

Failed to connect:

The SMTP server requires a secure connection or the client was not authenticated.

The server response was: SMTP authentication is required.

Tried this --

2. "YAF.UseSMTPSSL" value="true" (app.config)

SMTP Test Details

Failed to connect:

Server does not support secure connections.

This leaves SMTP authentication.

From hosting company:

You don't have to have SMTP authentication to be able to send emails via a client. The server will allow for you to send emails through the server as long as you authenticate via SMTP or POP3 within the past 30 minutes. Therefore, you'll be fine in most cases.

I can send/receive email admin@myforum.com via my email client and I am able to send email from within YAF (Users & Roles, MAIL). Seems to work except within YAF Install test.

email.conf:

Event Log.

Don't know how this would make a difference (no Facebook/Twitter registration) but got this:

Source: ASP.pages_register_ascx

Geolocation Service reports: Invalid API key.

Suggestions?

j

janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
11 years ago
Seems to be several problems, maybe related:

#1. Disabled Geolocation Services. There is some kind of problem with this when using user registration verification.

#2. Now the Event log shows: SendMailThread Failed for the 2nd time

#3. YAF INSTALL email test - no change. It appears also to be SMTP issue but does not make sense since notifications, etc. work! It is only registration email that get clogged up.

http://forum.yetanotherforum.net/yaf_postst13864_Email-problem.aspx#post52085 

I have no way of determining if this is, in fact, the problem. I am not a programmer and certainly not familiar with database modifications or coding.

Version: 1.9.6.1

Can someone help me with this please?!

Thanks!

j

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
11 years ago
The (very simple) code to sent the test email is the same that sends all the email:


public static void Send([NotNull] this MailMessage message)
{
    CodeContracts.ArgumentNotNull(message, "message");

    var smtpSend = new SmtpClient { EnableSsl = Config.UseSMTPSSL };

    smtpSend.ServicePoint.MaxIdleTime = 10;
    smtpSend.ServicePoint.ConnectionLimit = 1;

    // send the message...
    smtpSend.Send(message);
}
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
11 years ago
Strange, syntax highlighting seems broken.
janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
11 years ago
Thanks. Okay.

If the same code, what next?

janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
11 years ago
TADA!

I couldn't make sense of the SMTP authentication. So by chance, I discovered the problem: password in mail.config was incorrect (changed when moved to new server) for admin@myforum.com.

Tested with dummy user and it worked okay.

Two questions:

1. Where can I change the content of the message sent to new user after registering? I would like to add some things related to my forum.

2. I disabled Geolocation Services for registering. Got this message: Geolocation Service reports: Invalid API key.

How can this be fixed?

j

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
11 years ago

TADA!

I couldn't make sense of the SMTP authentication. So by chance, I discovered the problem: password in mail.config was incorrect (changed when moved to new server) for admin@myforum.com.

Tested with dummy user and it worked okay.

Two questions:

1. Where can I change the content of the message sent to new user after registering? I would like to add some things related to my forum.

2. I disabled Geolocation Services for registering. Got this message: Geolocation Service reports: Invalid API key.

How can this be fixed?

j

Originally Posted by: janusz 

1. The email templates are stored in the language files (..\languages\english.xml)

2. You need to provide an API Key in the Host Settings under Features -> Geolocation Settings -> IP Info XML Web Service URL.

http://ipinfodb.com/register.php 

Zero2Cool
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader YAF Version: YAF 3.1.16
11 years ago

TADA!

I couldn't make sense of the SMTP authentication. So by chance, I discovered the problem: password in mail.config was incorrect (changed when moved to new server) for admin@myforum.com.

Tested with dummy user and it worked okay.

Two questions:

1. Where can I change the content of the message sent to new user after registering? I would like to add some things related to my forum.

2. I disabled Geolocation Services for registering. Got this message: Geolocation Service reports: Invalid API key.

How can this be fixed?

j

Originally Posted by: tha_watcha 

1. The email templates are stored in the language files (..\languages\english.xml)

2. You need to provide an API Key in the Host Settings under Features -> Geolocation Settings -> IP Info XML Web Service URL.

http://ipinfodb.com/register.php 

Originally Posted by: janusz 

Bahahhahahhhhhaaa!!!

"We are sorry that the registration was temporarily disabled for maintenance until further notice."

:(

janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
11 years ago

1. The email templates are stored in the language files (..\languages\english.xml)

2. You need to provide an API Key in the Host Settings under Features -> Geolocation Settings -> IP Info XML Web Service URL.

http://ipinfodb.com/register.php 

Thanks! I appreciate it!

j

janusz
  • janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
11 years ago

Bahahhahahhhhhaaa!!!

"We are sorry that the registration was temporarily disabled for maintenance until further notice."

:(

Originally Posted by: Zero2Cool 

Thanks for the unusual comment. Is this humor? Is this necessary? or something else?