BugNET

Open source issue tracking & project management
Welcome to BugNET Register | Login |

BugNET Forums

 
  Forum  Support  Installation pr...  E-Mail configuration
Previous Previous
 
Next Next
New Post 3/30/2006 12:37 PM
User is offline admin
645 posts
bugnetproject.com
1st Level Poster




Re: E-Mail configuration 
 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
BugNET - Core Developer

 
New Post 3/30/2006 3:17 PM
User is offline jwilson2359
6 posts
No Ranking


Re: E-Mail configuration 

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 5:19 PM
User is offline admin
645 posts
bugnetproject.com
1st Level Poster




Re: E-Mail configuration 
 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
BugNET - Core Developer

 
New Post 3/31/2006 11:53 AM
User is offline jwilson2359
6 posts
No Ranking


Re: E-Mail configuration 

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 12:24 PM
User is offline jwilson2359
6 posts
No Ranking


Re: E-Mail configuration 

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 Previous
 
Next Next
  Forum  Support  Installation pr...  E-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.