RcBuilder@walla.com
call centre: 054-5614020

web.config outer files using configSource

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

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
17
Nov
2014

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
  • פיתוח מערכות
  • פתרונות טכנולוגים
  • קידום אתרים
  • בניית אתרים