BugNET

Open source issue tracking & project management
| Login

Import Update!

We are currently in transition and have moved our discussions to CodePlex. These forums will remain as reference until we launch of our new site in the upcoming weeks. After that they will be removed.

Thank you for your patience during our transition.

Forums

HomeHomeSupportSupportInstalling BugN...Installing BugN...E-Mail configurationE-Mail configuration
Previous
 
Next
New Post
3/30/2006 10:37 AM
 
scottg wrote
I can't get SMTP notifications to work either. I am using a relay that i know is working. Any pointers in the right direction would be a great help.


I am not to sure ...all I can suggest is that you double check everything.
  1. Make absolutly sure your email server is working and can connect to it from the machine where BugNET is installed.
  2. Fix the email address error in the database as described earlier in this thread

Davin Dubeau

follow us on twitter facebook users group google plus
 
New Post
3/30/2006 1:17 PM
 

Not to hound you but I too am having issues.

I have changed the email address to this BugNet@Company.com

In the SMTP settings all I have set is the SMTP server name.

We send emails to this server all the time from our other .NET applications and I do this frequently in testing from the PC I'm currently working on to get BugNet running.

Any ideas on what might be the problem?

 
New Post
3/30/2006 3:19 PM
 
jwilson2359 wrote

Not to hound you but I too am having issues.

I have changed the email address to this BugNet@Company.com

In the SMTP settings all I have set is the SMTP server name.

We send emails to this server all the time from our other .NET applications and I do this frequently in testing from the PC I'm currently working on to get BugNet running.

Any ideas on what might be the problem?



No problem at all.

There is one other thing I can think of. The host settings table from the database is cached in the application so if you manually edit the table in the database it won't be updated in the appliation till a change is detected.  If you go into host settings then click save it should refresh the cache and reload all the settings picking up the new email address you have specified.  

The non elegant solution would be to kill the aspnet_wp.exe from the task manager but this may impact users and other applications state.

Davin Dubeau

follow us on twitter facebook users group google plus
 
New Post
3/31/2006 9:53 AM
 

Hello,

I debugged the problem and unless I'm missing something the SMTP.LOGIN method is being called regardless of authentication method.  I commented out this line and the email was then sent fine.

It appears the Smtp.Login method should be in the above conditional logic for the authentication check.

 
New Post
3/31/2006 10:24 AM
 

Here is a rework of the method that should bypass the login method when necessary yet still allow authentication to work.  Please be aware I don't have any control over the authentication methods on my side so I couldn't test this change from an authentication standpoint.  It didn't paste very well in here but I did what I could.

public void SendMail(SimpleMailMessage sm)

{

   try

      {

         Smtp smtp = new Smtp();

         //if authentication enabled

         smtp.Connect(Globals.SmtpServer);

         SmtpResponse r=smtp.Ehlo(HeloType.EhloHelo, "Me");

         if(Convert.ToBoolean(HostSettings.GetHostSetting("SMTPAuthentication")))

            {

               smtp.User = HostSettings.GetHostSetting("SMTPUser");

               smtp.Password = HostSettings.GetHostSetting("SMTPPassword");

               smtp.Login();

            }

         SmtpMail smtpMail=new SmtpMail(sm.CreateMail());

         smtp.SendMessage(smtpMail);

      }

      catch(Exception ex)

      {

         System.Diagnostics.Debug.WriteLine(ex.StackTrace, ex.Message);

      }

   }

 
Previous
 
Next
HomeHomeSupportSupportInstalling BugN...Installing BugN...E-Mail configurationE-Mail configuration


Forum Policy

These Discussion Forums are dedicated to the discussion of the BugNET issue tracker.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:
1. No Advertising.
2. No Flaming or Trolling.
3. No Profanity, Racism, or Prejudice.
4. Site Moderators have the final word on approving/removing a thread or post or comment.
5. English language posting only, please.