![]() Once written coding, compile if no error occurs. MyLogEvent.WriteEntry( "Error occured" ) Ĩ. MyLogEvent.WriteEntry( "Mail Send Successfully" ) NetworkCredential credentials = new System.Net. SmtpClient smtpClient = new SmtpClient ( "97.0.0.6", Convert. MailMessage mailMsg = new MailMessage () Public bool SendEmail( string strTo, string strFrom, string strSubject, string strBody) Here SendEmail is my function for sending mail SendEmail(, , "Automatic Mail sending", "Successfully working contact ) ħ. MyLogEvent.WriteEntry( "Mail Sending on " + DateTime. Public void time_elapsed( object sender, ElapsedEventArgs e) Time_elapsed event to be call for every 5 minutes MyLogEvent.WriteEntry( "In OnStart - Sending Mail to" + Dt) Here, create timer component and assign the interval values and other properties This is the short version….If (!System.Diagnostics. Where can I find that? If you don’t mind. In that scenario I would also want some type of reporting, and automated report sent to managers showing how great technology is and how well we do our jobs. Then what about notifying the user internal that xyz company sent an email and we responded and let them know but here is data proving it. Right now the only real option is Transport Rule on 365 and then a extremely limited and short response message. Domain name rebrand but company has to end of year to notify so partners and potential customers don’t have to get NDR’s thinking the company is gone or person is gone where proactive autoreponders are fine up to the day X where you are no longer allowed to receive mail sent to that domain but you own the domain and manage DNS so that on Day X you drop the mail but respond with “Hey, we were this domain now this one update your records”. What about an Auto Response but where the mail can never hit the mailbox? In Office 365, Hybrid Mode.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |