Click here to Skip to main content
       

ASP.NET

 
GeneralRe: multilanguage application PinmemberMember 870181326-Feb-13 1:44 
GeneralRe: multilanguage application PinmvpSandeep Mewara26-Feb-13 2:04 
GeneralRe: multilanguage application PinmemberMember 870181326-Feb-13 2:51 
GeneralRe: multilanguage application PinmemberMember 870181326-Feb-13 5:20 
AnswerRe: multilanguage application PinmvpSandeep Mewara26-Feb-13 5:38 
GeneralRe: multilanguage application PinmemberMember 870181327-Feb-13 4:38 
GeneralRe: multilanguage application PinmvpSandeep Mewara27-Feb-13 4:48 
GeneralRe: multilanguage application PinmemberMember 870181327-Feb-13 6:24 
GeneralRe: multilanguage application PinmvpSandeep Mewara27-Feb-13 6:28 
GeneralRe: multilanguage application PinmemberMember 870181327-Feb-13 16:10 
Questions/m has to send mail on button click event PinmemberMember 870181318-Feb-13 5:24 
AnswerRe: s/m has to send mail on button click event PinmvpSandeep Mewara18-Feb-13 5:57 
GeneralRe: s/m has to send mail on button click event PinmemberMember 870181318-Feb-13 6:42 
GeneralRe: s/m has to send mail on button click event PinmvpSandeep Mewara18-Feb-13 6:49 
Member 8701813 wrote:
SmtpServer.Port = SMTPPort;
SmtpServer.Credentials = new NetworkCredential(CredentialEmailId, CredentialPassword);
SmtpServer.DeliveryMethod = SmtpDeliveryMethod.Network;

Not sure where from you picked it as I did not suggested so in my snippet. Moving on, having these lines is not an issue - only difference is, this is runtime defining the parameters needed, which otherwise could be picked from web.config file. Defining them at any one place is good enough. Keep config entry you shared in original question OR keep current above lines with values as was filled in config.
 

Member 8701813 wrote:
i am unable to understand the above statement

You can ignore/comment them. It was kind of logging to see what happened, not necessary for sending email.
Sandeep Mewara
Microsoft ASP.NET MVP 2012 & 2013

[My Blog]: Sandeep Mewara's Tech Journal!
[My Latest Article]: HTML5 Quick Start Web Application

GeneralRe: s/m has to send mail on button click event PinmemberMember 870181318-Feb-13 7:26 
Questionsending mail on button click event from the s/m PinmemberMember 870181318-Feb-13 5:15 
AnswerRe: sending mail on button click event from the s/m PinmvpSandeep Mewara18-Feb-13 6:00 
QuestionUsing Ajax in my project Pinmemberjaveed03518-Feb-13 3:32 
Questionweb service keep a process open Pinmemberdcof17-Feb-13 13:12 
AnswerRe: web service keep a process open PinmemberN a v a n e e t h17-Feb-13 17:15 
Questionerror in passing array parameter to a storedprocedure PinmemberMember 870181316-Feb-13 16:28 
AnswerRe: error in passing array parameter to a storedprocedure PinmvpSandeep Mewara16-Feb-13 18:18 
GeneralRe: error in passing array parameter to a storedprocedure PinmemberMember 870181316-Feb-13 20:45 
QuestionPublishing asp.net website on cpanel PinmemberArun kumar Gautam15-Feb-13 2:12 
AnswerRe: Publishing asp.net website on cpanel PinmemberRichard Deeming15-Feb-13 2:38 
Questionasp.net PinmemberMember 983745515-Feb-13 0:49 
AnswerRe: asp.net PinmemberMarco Bertschi15-Feb-13 2:43 
AnswerA quick tip for new members... PinmemberMarco Bertschi15-Feb-13 2:49 
AnswerRe: asp.net PinmvpSandeep Mewara15-Feb-13 10:07 
Questionasp.net PinmemberMember 983745515-Feb-13 0:47 
AnswerRe: asp.net PinmemberMarco Bertschi15-Feb-13 2:41 
Questionfileupload control PinmemberMember 870181314-Feb-13 20:58 
AnswerRe: fileupload control PinmvpSandeep Mewara15-Feb-13 10:09 
Questionhow to check the given string language weather it is marathi hindi or any other Pinmemberjalbaji13-Feb-13 8:57 
AnswerRe: how to check the given string language weather it is marathi hindi or any other PinmemberRichard Deeming13-Feb-13 9:44 
AnswerRe: how to check the given string language weather it is marathi hindi or any other PinmemberN a v a n e e t h13-Feb-13 19:14 
Questionvbscript question.. Pinmemberbuffering8313-Feb-13 0:48 
QuestionSelect only 1 checbox in a checkbox list Pinmemberberba12-Feb-13 23:21 
AnswerRe: Select only 1 checbox in a checkbox list PinmvpSandeep Mewara13-Feb-13 0:03 
AnswerRe: Select only 1 checbox in a checkbox list PinmemberShameel13-Feb-13 3:26 
Questionvbscript don't work in visual studio 2010? Pinmemberbuffering8312-Feb-13 21:42 
AnswerRe: vbscript don't work in visual studio 2010? PinmemberGarth J Lancaster12-Feb-13 21:58 
AnswerRe: vbscript don't work in visual studio 2010? PinmemberSrilatha040612-Feb-13 23:10 
GeneralRe: vbscript don't work in visual studio 2010? Pinmemberbuffering8313-Feb-13 0:46 
AnswerRe: vbscript don't work in visual studio 2010? PinmvpSandeep Mewara13-Feb-13 0:20 
QuestionSignature not working in web browser(VB.NET) PinmemberSugu.s12-Feb-13 21:04 
AnswerRe: Signature not working in web browser(VB.NET) PinmemberN a v a n e e t h12-Feb-13 22:24 
GeneralRe: Signature not working in web browser(VB.NET) PinmemberSugu.s12-Feb-13 23:44 
Questionimplementing comment box facility in web pages Pinmemberabhi_ban12-Feb-13 8:12 
AnswerRe: implementing comment box facility in web pages PinmemberCatalin Hatmanu12-Feb-13 11:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.140415.2 | Last Updated 19 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid