janusz
  •  janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
2013-10-03T03:47:51Z
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
2013-10-03T06:51:13Z
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
2013-10-03T14:59:20Z
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:

<smtp deliveryMethod="Network" from="admin@myforum.com">
<network host="mail.myforum.com" port="25" password="1234567" userName="admin@myforum.com" />
</smtp>

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
2013-10-04T18:31:14Z
janusz
  •  janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
2013-10-05T19:58:49Z
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.

From what I found (search), it is unclear as to the cause of the "SendMailThread Failed for the 2nd time" error. A two year old thread suggested that this is somehow related to the Mail Table and can be cleared: http://forum.yetanotherf...l-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
2013-10-05T23:07:09Z
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
2013-10-05T23:10:19Z
Strange, syntax highlighting seems broken.
janusz
  •  janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
2013-10-05T23:25:51Z
Thanks. Okay.

If the same code, what next?


janusz
  •  janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
2013-10-06T00:17:42Z
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
2013-10-06T05:50:34Z
Originally Posted by: janusz 

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



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.

There is an URL which contains the <your_api_key> tag. That tags needs to be replaced with your actual API Key. You can get one here... http://ipinfodb.com/register.php 


UserPostedImage
Zero2Cool
2013-10-07T12:41:22Z
Originally Posted by: tha_watcha 

Originally Posted by: janusz 

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



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.

There is an URL which contains the <your_api_key> tag. That tags needs to be replaced with your actual API Key. You can get one here... http://ipinfodb.com/register.php 



Bahahhahahhhhhaaa!!!

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

:(


janusz
  •  janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
2013-10-09T15:12:20Z
Quote:


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.

There is an URL which contains the <your_api_key> tag. That tags needs to be replaced with your actual API Key. You can get one here... http://ipinfodb.com/register.php 



Thanks! I appreciate it!

j
janusz
  •  janusz
  • 67.6% (Friendly)
  • YAF Commander Topic Starter
2013-10-09T15:18:01Z
Originally Posted by: Zero2Cool 




Bahahhahahhhhhaaa!!!

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

:(



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

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved