call centre: 054-5614020

MSMQ basic example

Posted by: RcBuilder  /   Category: Mail / Message Queuing / MessageQueue / MessageQueue / MSMQ / SOURCE CODE / System   /   No Comments

MSMQ basic example - add 'System.Messaging' namespace - in order to get the ability for object to be serialized into the queue they have to be public with empty constructor - in order to see the queues right click on My Computer -> Manage -> Services And Applications -> Message Queuing -> Private Queues Application namespace TestMSMQ { public class User { public string FName.

Read more

web.config outer files using configSource

Posted by: RcBuilder  /   Category: configSource / configuration / Mail / smtp   /   No Comments

web.config outer files using configSource web.config <configSections> <appSettings configSource="web.keys.config"/> <connectionStrings configSource="web.connections.config"/> <system.net> <mailSettings> <smtp configSource="we.Smtp.config"/> </mailSettings> </system.net> </configuration> web.keys.config <appSettings > <add key="..." value="..."/> <add key="..." value="..."/> <add key="..." value="..."/> </appSettings> web.connections.config <connectionStrings> <add name="ConnStr" connectionString="Data Source=XXXXXX;Initial Catalog=XXX;User Id=XXX;Password=XXX;Max Pool Size=200;Min Pool Size=0;Pooling=true;" providerName="System.Data.SqlClient" /> </connectionStrings> we.Smtp.config <smtp deliveryMethod="network" from="user1@gmail.com" > <network host="smtp.gmail.com" port="587" password="XXXX" userName="XXXX".

Read more

web config mail settings – smtp tag

Posted by: RcBuilder  /   Category: configuration / Mail / MailAddress / MailMessage / Network / smtp / SmtpClient / SOURCE CODE / System.Net.Mail   /   No Comments

web config mail settings - smtp tag we can use the smtp built-in tag to define our outgoing mail server instead of using app keys configuration <system.net> <mailSettings> <smtp from="rcbuilder@gmail.com"> <network host="smtp.gmail.com" password="XXXXX" port="587" userName="somemail@domain.com"/> </smtp> </mailSettings> </system.net> using using System.Net.Mail; MailMessage myMessage = new MailMessage(); myMessage.To.Add(new MailAddress("somemail@domain.com", "ROBY")); myMessage.Subject = "HELLO ROBY"; myMessage.Body = "TEXT TEXT TEXT TEXT TEXT TEXT TEXT"; myMessage.IsBodyHtml = true; SmtpClient mySmtp = new SmtpClient(); mySmtp.EnableSsl =.

Read more
  • פיתוח מערכות
  • פתרונות טכנולוגים
  • קידום אתרים
  • בניית אתרים