SMTP relay.....Email Need to send by an application
Hello team I have a testing environment which is running Exchange 2007, which can send and receive only internaly.No Internet Connection in this setup. so no external emails cannot received and aslo no one can send the email to external. i would like to setup or coffigure like SMTP relay, which i looking for progam or application which can send the send the email to the adminsiatrtor or any maiboxes is there any application or program is avaialble for free download .. Could you please advice...How to achive this???? Example.. Payrol application , IT application etc...once the user fisnish the submit. Am mail will trigger to the assigned mailbox.... Hope You all undersatnd the requirement?
July 26th, 2010 12:44pm

Hi If you want to let some server/application relay through your exchange 2007 you need to create a connector for that new-ReceiveConnector -Name 'Relay Connector' -Usage 'Custom' -Bindings '' -RemoteIPRanges 'theserver/applicationip' -Server 'exchangeservername' Get-ReceiveConnector -Identity 'Relay Connector' | Add-ADPermission -User "NT AUTHORITY\ANONYMOUS LOGON" -ExtendedRights "ms-Exch-SMTP-Accept-Any-Recipient"Jonas Andersson MCTS: Microsoft Exchange Server 2007/2010 | MCITP: EMA 2007/2010 | MCSE/MCSA Blog:
Free Windows Admin Tool Kit Click here and download it now
July 26th, 2010 12:57pm

Hi Jonas. Thanks, but i realy need a sample of application.
July 26th, 2010 3:05pm

Hi, A sample of relay SMTP application (C#): 1. Create a Windows Application on VS2005. 2. Add a button object to form. Double click the button and input the following codes: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Net.Mail; using System.Net; namespace Relay { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { try { //to MailMessage mailMsg = new MailMessage(); mailMsg.To.Add("administrator@genli.lab"); // Send the message to genli.lab //from MailAddress mailadd = new MailAddress(""); mailMsg.From = mailadd; mailMsg.Subject = "Hi, this is a relay email"; mailMsg.Body = "Can you get this email"; //Init SMTP client and send SmtpClient smtpc = new SmtpClient("", 25); // is the relay SMTP server. smtpc.Send(mailMsg); } catch (Exception ex) { Console.WriteLine("Exception caught in CreateTestMessage"); ex.ToString(); } } } } If there is anything unclear, please feel free to let me know. Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Thanks
Free Windows Admin Tool Kit Click here and download it now
July 28th, 2010 5:55am

Thanks Gen Lin, Here is my testing appilcation which i created by my selfy For email relay(SMTP) . Tha application purpose is for I.T services if any of the users in the organization having any problem with realted to I.T means, They sgould have open the below application and log a complaint to administartor . user name is the name of the user who is rasing the complaint. and email address is the Email Id if the user who is raising the compliant and nature of the problem is , any problem where the user is facing Example user : John Martin Email ID : Nature of the problem : Mouse not working Command Button : Submit to I.T Once the user is click submit to I.T , then one Email from to has to send with his nature of problem , so that administartor should action on it. Hope this will give much understand for you 1. I open the excel Sheet (MS Excell 2007) and My desgined is like below User Name ------------ Inserted Text Box Email Address----------Insterted Text Box Nature of the Problelem ----------Insterted Text box and last one COMMAND BUTTON ------> to send the email I had saved the excel file as HTM file (IT.HTM)and put in one of the lcation in the hard dive. then i Opened the IIS a manager from my exchange server 2007 and created the new website and located the above IT.HTM) Every thing fine for. iam able to browse the HTM file . but am unable to any thing like below 1. unable to type anyting in the text box 2. what is the macro or program should i write in the coomand button to send the email. 3. How to achive this.? 4 . Am i doing any complicated things? instaed of doing better way than this? ..please suggest.....
August 8th, 2010 8:35am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics