Jump to content

Need help and suggestion to Redirect mails from One Ip address SMTP


Recommended Posts

Dear Team,

I am planning to develop one small project i.e take input from the user and send mail to Support Team, Please find the below code  and GUI .

In this case :I have SMTP server it work in my system since access has been given to my IP to accept  the mails  . If i try to run the script from any other system its not working,We cant give access to all users IP address in SMTP server to accept mails . How do we deal this issue ,script should work from any system .

Requiremet : Once user submit the mail it should come to one server or one IP address from that IP mail should send to Smtp server   Please Suggest your input  .

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <Constants.au3>

$hGUI = GUICreate( "New Window", 468, 324, -1, -1)
$hLabel = GUICtrlCreateLabel( "Report Issue ", 143, 22, 132, 24)
GUICtrlSetFont( -1, 10, 800, 0)
$hLabel2 = GUICtrlCreateLabel( "User Name ", 33, 74, 87, 19)
GUICtrlSetFont( -1, 8.5, 800, 0)
$hLabel3 = GUICtrlCreateLabel( "Contact Number ", 35, 106, 104, 19)
GUICtrlSetFont( -1, 8.5, 800, 0)
$hLabel4 = GUICtrlCreateLabel( "IP address", 35, 142, 89, 19)
GUICtrlSetFont( -1, 8.5, 800, 0)
$hLabel5 = GUICtrlCreateLabel( "Host Name ", 35, 175, 88, 16)
GUICtrlSetFont( -1, 8.5, 800, 0)
$hLabel6 = GUICtrlCreateLabel( "Issue ", 39, 208, 74, 16)
GUICtrlSetFont( -1, 8.5, 800, 0)
$hInput = GUICtrlCreateInput( "", 146, 70, 187, 18)
$hInput2 = GUICtrlCreateInput( "", 146, 106, 187, 22)
$hEdit = GUICtrlCreateEdit( "", 146, 146, 187, 15)
$hEdit2 = GUICtrlCreateEdit( "", 146, 175, 187, 18)
$hInput3 = GUICtrlCreateInput( "", 146, 214, 187, 56)
$hButton = GUICtrlCreateButton( "Submit", 39, 289, 107, 29)
$hButton2 = GUICtrlCreateButton( "Cancel", 215, 291, 87, 24)
GUISetState()

While 1
    $hMsg = GUIGetMsg()
    Switch $hMsg
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch

WEnd
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...