CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10
  1. #1
    Join Date
    Dec 2005
    Posts
    28

    E-mail restriction Application

    Back End
    Microsoft Exchange Server - Mail Server
    Microsoft SQL Server - Database
    E-mail address Acceptance List
    E-mail address Denial List
    Ability for admin to edit either List
    Ability to log attempts to send e-mail to restricted addresses
    Ability to log what IP Address,User Name, Computer Name, & Network Location attempted to send the e-mail to the restricted address(s)
    Ability to Exprot log attempts to excel (user Specific Track)
    Ability to export to Excel

    Client
    Microsoft Outlook - E-mail Client
    Last edited by VBprogrammer2006; January 5th, 2006 at 11:22 PM.

  2. #2
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: E-mail restriction Application

    Okay these are your requirments.. where are you having problems with the implementation of these...

    Please read this FAQ and help us to help you...

    Like the old saying "The more you Give, The more you get in return"..

    Gremmy...
    Last edited by GremlinSA; January 8th, 2006 at 05:54 PM.
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  3. #3
    Join Date
    Dec 2005
    Posts
    28

    Re: E-mail restriction Application

    I have not started this one yet. All I want is suggestions on what you would do in this situation (How would you tackle this Application)
    suggestions greatly appreicated

    thanks
    VBProgrammer2006

  4. #4
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: E-mail restriction Application

    Best method i can think of is making your own Email server application (Almost like a Http proxy) you'll need to use the standard SMTP Protocol as well as the Standard POP3 Protocol.

    With this base you can now easilly implement all and more of your requirments..

    Gremmy...
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  5. #5
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: E-mail restriction Application

    As Gremmy says, you should create your own email server (sound like a lot of fun - and I am sure not the answer you hoped for)

    The main problem is that you cannot control Microsoft Email Servers programatically as you will continually get a popup from the Email System telling you that someone is trying to control the system programatically !!!!

    This problem stems from the days of the "Love" virus which hijacked peoples email systems and used them to send out millions of emails.

    So if you are game to make your own Email Server, have a google search for "vbSendmail" which will probably solve 99% of what you will need. This is a SMTP Email System with full source code

    Good Luck

  6. #6
    Join Date
    Dec 2005
    Posts
    28

    Re: E-mail restriction Application

    Quote Originally Posted by George1111
    As Gremmy says, you should create your own email server (sound like a lot of fun - and I am sure not the answer you hoped for)

    The main problem is that you cannot control Microsoft Email Servers programatically as you will continually get a popup from the Email System telling you that someone is trying to control the system programatically !!!!

    This problem stems from the days of the "Love" virus which hijacked peoples email systems and used them to send out millions of emails.

    So if you are game to make your own Email Server, have a google search for "vbSendmail" which will probably solve 99% of what you will need. This is a SMTP Email System with full source code

    Good Luck

    Are you able to disable popups on a microsoft e-mail server? And if so how would you do this (Please explain in detail)

    thanks
    VBProgrammer2006

  7. #7
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    Re: E-mail restriction Application

    Quote Originally Posted by VBprogrammer2006
    Are you able to disable popups on a microsoft e-mail server? And if so how would you do this (Please explain in detail)

    thanks
    VBProgrammer2006
    You would not believe him but its true, THis is not the way out. This popups are there and trying to stop them will maybe even create more of them which tells you that someone programmwise trys to manipulate the server. But he has given you a really good adress so use it !
    Jonny Poet

    To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
    Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
    If anyone felt he has got help, show it in rating the post.
    Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
    My latest articles :
    Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

  8. #8
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    Re: E-mail restriction Application

    Quote Originally Posted by GremlinSA
    Okay these are your requirments.. where are you having problems with the implementation of these...

    Please read this FAQ and help us to help you...

    Like the old saying "The more you Give, The more you get in return"..

    Gremmy...
    Hey Grammy This link isn't the FAQ
    Jonny Poet

    To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
    Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
    If anyone felt he has got help, show it in rating the post.
    Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
    My latest articles :
    Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7

  9. #9
    Join Date
    Aug 2003
    Location
    Sydney, Australia
    Posts
    1,901

    Re: E-mail restriction Application

    HTML Code:
    Are you able to disable popups on a microsoft e-mail server? And if so how would you do this (Please explain in detail)
    Last time I got around this problem, I used Outlook 2000 (which did not have the popups)

    However, there is some fancy software which clicks the OK button automatically (not sure of the viability of it)


    Check out the following from ExpressSoft





    HTML Code:
    Enhance your Windows Explorer with free 
    shell extensions by
    ContextMagic.com
    
    Don't miss an important message again. Get new email notification with
    
    Express Mail@Mate   
    --------------------------------------------------------------------------------
    Express ClickYes 1.0.5 (updated on July 4, 2003)  
    What is Express ClickYes
    
    Express ClickYes is a tiny program that sits in the taskbar and clicks the Yes button on behalf of you, when Outlook's Security Guard opens prompt dialog saying that a program is trying to send an email with Outlook or access its address book. You can suspend/resume it by double-clicking its taskbar icon. Developers can automate its behavior by sending special messages.
    
    Download your FREE copy of Express ClickYes (93 Kb)
    
    ClickYes works with:
    
    Outlook 2000 SP1+SR1 
    Outlook 2000 SP2 
    Outlook 2002 
    Outlook 2003 Beta 2 
    Though ClickYes is completely free of charge, you can give us a favor looking at Express Mail@Mate, our email notification tool.  Click here to find out more...
    
    ClickYes doesn't work with Outlook Express. There is an appropriate option in the Outlook's Express settings. To turn the prompts off, click Options on the menu, switch to the Security tab, and clear the Warn me when other applications try to send mail as me checkbox. For additional information, look at the screenshot below.
    
     
    
    How to Install and Launch
    
    Download the installation package, run ClickYesSetup.exe and follow the instructions. 
    After this just double-click the ClickYes shortcut icon on your Desktop to launch the program. 
    How to Use Express ClickYes
    
    Being launched Express ClickYes sits in the taskbar and does what it should. 
    To resume/suspend program execution double-click its taskbar tray icon. 
    Right-click its tray icon, to get the popup menu, and select some additional options. 
    To exit ClickYes, right-click its icon and select Exit in the popup menu. 
    Known Limitations
    
    ClickYes stops processing commands while the Windows NT/2000/XP
    workstation is locked. 
    How to Uninstall
    
    To uninstall Express ClickYes, double-click the Add/Remove Programs icon in the Windows Control Panel. 
    Select Express ClickYes in the list of installed programs and click the Add/Remove button. Follow the instructions. 
     
    
    --------------------------------------------------------------------------------
    Third-party Developers 
    We are glad to announce that Express ClickYes can be managed from third-parties' software now. Please take a look at code samples below how to do so using C/C++, Borland Delphi, Microsoft Visual Basic, Visual FoxPro and even  VB.NET.
    
     C/C++ Sample
     
    
    void SomeProc() {
    HWND wnd;
    UINT uClickYes;
    
    // Register a message to send
      uClickYes=RegisterWindowMessage("CLICKYES_SUSPEND_RESUME");
    
    // Find ClickYes Window by classname
      wnd=FindWindow("EXCLICKYES_WND", NULL);
    
    // Send the message to Resume ClickYes
      SendMessage(wnd, uClickYes, 1, 0);
    
    // ...
    // Do some Actions
    // ...
    
    // Send the message to Suspend ClickYes
    SendMessage(wnd, uClickYes, 0, 0); 
    } 
    
    
    
     Delphi Sample
     
    
    procedure SomeProc;
    var
      wnd: HWND;
      uClickYes: UINT;
    
    begin
    // Register a message to send
      uClickYes:=RegisterWindowMessage('CLICKYES_SUSPEND_RESUME');
    
    // Find ClickYes Window by classname
      wnd:=FindWindow('EXCLICKYES_WND',nil);
    
    // Send the message to Resume ClickYes
      SendMessage(wnd, uClickYes, 1, 0);
    
    // ...
    // Do some Actions
    // ...
    
    // Send the message to Suspend ClickYes
      SendMessage(wnd, uClickYes, 0, 0);
    
    end; 
    
    
    
     VB/VBA Sample
     
    
    ' Declare Windows' API functions
    Private Declare Function RegisterWindowMessage _
            Lib "user32" Alias "RegisterWindowMessageA" _
            (ByVal lpString As String) As Long
    
    Private Declare Function FindWindow Lib "user32" _
            Alias "FindWindowA" (ByVal lpClassName As Any, _
            ByVal lpWindowName As Any) As Long
    
    Private Declare Function SendMessage Lib "user32" _
            Alias "SendMessageA" (ByVal hwnd As Long, _
            ByVal wMsg As Long, ByVal wParam As Long, _
            lParam As Any) As Long
    
    Private Sub SomeProc()
    Dim wnd As Long
    Dim uClickYes As Long
    Dim Res As Long
    
    ' Register a message to send
    uClickYes = RegisterWindowMessage("CLICKYES_SUSPEND_RESUME")
    
    ' Find ClickYes Window by classname
    wnd = FindWindow("EXCLICKYES_WND", 0&)
    
    ' Send the message to Resume ClickYes
    Res = SendMessage(wnd, uClickYes, 1, 0)
    
    ' ...
    ' Do some Actions
    ' ...
    
    ' Send the message to Suspend ClickYes
    Res = SendMessage(wnd, uClickYes, 0, 0)
    
    End Sub
    
    
    
     Visual FoxPro Sample
     
    
    PROCEDURE SomeProc
    LOCAL uClickYes, wnd, Res, lResult
    
    * Declare Windows' API functions
    DECLARE INTEGER RegisterWindowMessage IN User32 ;
            STRING lpString
    
    DECLARE INTEGER FindWindow IN user32;
            STRING lpClassName,;
            STRING lpWindowName
    
    DECLARE INTEGER SendMessage IN user32;
            INTEGER hWnd, INTEGER Msg,;
            INTEGER wParam, INTEGER lParam
    
    
    * Register a message to send
    uClickYes = RegisterWindowMessage("CLICKYES_SUSPEND_RESUME")
    
    * Find ClickYes Window by classname
    wnd = FindWindow("EXCLICKYES_WND", 0)
    
    * Send the message to Resume ClickYes
    Res = SendMessage(wnd, uClickYes, 1, 0)
    
    =MessageBox("Check it is running")
    
    * ...
    * Do some Actions
    * ...
    
    * Send the message to Suspend ClickYes
    Res = SendMessage(wnd, uClickYes, 0, 0)
    
    =MessageBox("Should now be suspended")
     
    
    
    
     VB.NET Sample
     
    
    As VB.NET sample project consists of several files, we don't provide code sources on this page. You can download a VB.NET sample project, extract and try it for yourself in your environment.
     
    
    --------------------------------------------------------------------------------
    Feature Requests 
    Please let us know what features you would like to see in the next program release. Your comments, suggestions and feature requests are welcome at:
    [email protected] .
     
    
    --------------------------------------------------------------------------------
     
     
      Download Now 
     
     
     
      
    
    © 2000-2003 ExpressSoft, Inc.

  10. #10
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: E-mail restriction Application

    Opps... Fixed it in the original post...

    Thanks Jonny..
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured