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/31/2006 12:47 PM
User is offline jwilson2359
6 posts
No Ranking


Re: E-Mail configuration 

On another note:

I'm not too clear on what the POP3 Mailboxes section of the Project Configuration page is used for.

Could you give me a run down of what this would be used for and an example of how a sample mailbox would be set up?

 
New Post 3/31/2006 1:18 PM
User is offline admin
645 posts
bugnetproject.com
1st Level Poster




Re: E-Mail configuration 
Modified By admin  on 3/31/2006 12:21:49 PM)
 jwilson2359 wrote

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.


Thanks for finding this issue and posting a fix. I will integrate it with the source so that it is fixed for the next release.

The pop3 mailboxes allow you to post bugs to the issue tracker through email.  You can add different mailboxes to the project and when you submit an issue to it ..depending on the configuration it will parse it out(the email is considered the description) and assign it to a user and a type.  

I haven't used this functionality much myself but another user has and contributed this code.

*
Update: I just looked at the code and I can spot some configuration issues right away so there is some work to be done still on this before it is fully functional.



Davin Dubeau
BugNET - Core Developer

 
New Post 4/4/2006 9:31 AM
User is offline scottg
2 posts
No Ranking


Re: E-Mail configuration 

Forgive me for sounding incredibly stoopid but what file do i need to edit to get this to work ?

 
New Post 6/17/2006 5:49 PM
User is offline bdiaz
3 posts
No Ranking


Re: E-Mail configuration 
I recently downloaded the 0.6.7 version and was able to install successfully.  After setting up several projects I noticed that no one was receiving email notifications when issues were added/updated.  I read all of the suggestions on this thread, but no luck.

Are you aware of any problems or special requirements to get the SMTP feature set up correctly on a Windows 2003 SP1 server?

Thanks in advance.
Bobby
 
New Post 6/18/2006 6:36 PM
User is offline bdiaz
3 posts
No Ranking


Re: E-Mail configuration 
I was finally able to figure out what the issue was, and it had nothing to do with Windows 2003 Server!  The SMTP feature was not working for me on either the 0.6.7 or 0.7.0 version.  There were actually two different problems.

1. The BugNotification.SendMail(SimpleMailMessage) method queries for a HostSetting called SMTPUser when it should be looking for SMTPUsername, since that is the key that is stored in the db.  Once I made that change, the correct value was returned.

2. The second issue was actually harder to track down as it involved the license restriction imposed by Mail.dll.  The MimeBase class, which is the base class of MailData, calls CryptoLicenseProvider.Validate(base.GetType(), true) inside of its default constructor.  This method ensures that the Type of the current class, or its Assembly, declares the CryptoLicenseAttribute with the name of the license file.  Since this attribute is not declared by the MailData class, the Validate method was throwing an InvalidLicenseException("Loading license failed.").  SMTP still wouldn't work after I added the attribute to MailData, I was getting an LicenseInvalidException("License is invalid.").  In order for the demo non-commercial license to work, the classes have to reside in Mail.dll, thus the sub-classing of MimeData prevents its use.

To get it working, I had to change each occurance of this line in BugNotification.cs:

sm.TextData = new MailData(body, new ContentType(MimeType.Text, MimeSubtype.Html));


To the following:

sm.TextData = new MimeData();

sm.TextData.Body = body;

sm.TextData.ContentType = new ContentType(MimeType.Text, MimeSubtype.Html);


Is there a chance that these changes can be applied?

Thanks,
Bobby
 
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.