Click here to Skip to main content
15,903,033 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Sending Mail Pin
Sathesh Sakthivel3-Jul-07 0:22
Sathesh Sakthivel3-Jul-07 0:22 
AnswerRe: Sending Mail Pin
Sandeep Akhare3-Jul-07 0:38
Sandeep Akhare3-Jul-07 0:38 
GeneralRe: Sending Mail Pin
Sathesh Sakthivel3-Jul-07 0:49
Sathesh Sakthivel3-Jul-07 0:49 
GeneralRe: Sending Mail Pin
Sandeep Akhare3-Jul-07 0:57
Sandeep Akhare3-Jul-07 0:57 
GeneralRe: Sending Mail Pin
Sathesh Sakthivel3-Jul-07 1:03
Sathesh Sakthivel3-Jul-07 1:03 
AnswerRe: Sending Mail Pin
Krish - KP3-Jul-07 0:45
Krish - KP3-Jul-07 0:45 
GeneralRe: Sending Mail Pin
.NET- India 3-Jul-07 0:49
.NET- India 3-Jul-07 0:49 
GeneralRe: Sending Mail Pin
PrakashBhaskar3-Jul-07 1:16
PrakashBhaskar3-Jul-07 1:16 
The below code should work else you your mail will be put in queue/badmail folder under the inetpub/mail

eMail = new MailMessage();
eMail.BodyFormat = MailFormat.Text;
eMail.From = _SendFrom;
eMail.Fields[http://schemas.microsoft.com/cdo/configuration/smtsperver]
= "SMTPServerName";
eMail.Fields[
"http://schemas.microsoft.com/cdo/configuration/smtpserverport"] = 25;
eMail.Fields[
"http://schemas.microsoft.com/cdo/configuration/sendusing"] = 2;
if (SMTPUser != null && SMTPPassword != null)
{
eMail.Fields[
"http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"] = 1;
eMail.Fields[
"http://schemas.microsoft.com/cdo/configuration/sendusername"] = "mailid@yourdomain.com";
eMail.Fields[
"http://schemas.microsoft.com/cdo/configuration/sendpassword"] = "your account password";
}
eMail.To = "recipients";
SmtpMail.SmtpServer = SMTPServerName;
SmtpMail.Send(eMail);
//

Thanks
Warm Regards
Prakash-B

AnswerRe: Sending Mail Pin
Krish - KP4-Jul-07 21:37
Krish - KP4-Jul-07 21:37 
Questioncursor focus back on text box Pin
Piyush Vardhan Singh3-Jul-07 0:16
Piyush Vardhan Singh3-Jul-07 0:16 
Questiongenerate random number Pin
darshan4u3-Jul-07 0:12
darshan4u3-Jul-07 0:12 
AnswerRe: generate random number Pin
Sathesh Sakthivel3-Jul-07 0:15
Sathesh Sakthivel3-Jul-07 0:15 
AnswerRe: generate random number Pin
Sandeep Akhare3-Jul-07 0:17
Sandeep Akhare3-Jul-07 0:17 
QuestionInsert and edit values in dropdown at run time asp.net with C# code Pin
SukhiGolden2-Jul-07 23:58
SukhiGolden2-Jul-07 23:58 
AnswerRe: Insert and edit values in dropdown at run time asp.net with C# code Pin
Sandeep Akhare3-Jul-07 0:04
Sandeep Akhare3-Jul-07 0:04 
AnswerThe rules Pin
leckey3-Jul-07 3:20
leckey3-Jul-07 3:20 
QuestionEdit and insert new values in dropdown box at runtime Pin
SukhiGolden2-Jul-07 23:45
SukhiGolden2-Jul-07 23:45 
QuestionIf condition Pin
Member 38798812-Jul-07 23:41
Member 38798812-Jul-07 23:41 
AnswerRe: If condition Pin
Sandeep Akhare3-Jul-07 0:00
Sandeep Akhare3-Jul-07 0:00 
GeneralRe: If condition Pin
Craster3-Jul-07 0:47
Craster3-Jul-07 0:47 
AnswerRe: If condition Pin
DanB19833-Jul-07 0:05
DanB19833-Jul-07 0:05 
QuestionWEBGRID COUNT Pin
ballameharmurali2-Jul-07 23:30
ballameharmurali2-Jul-07 23:30 
AnswerRe: WEBGRID COUNT Pin
Sandeep Akhare2-Jul-07 23:42
Sandeep Akhare2-Jul-07 23:42 
GeneralRe: WEBGRID COUNT Pin
ballameharmurali3-Jul-07 0:32
ballameharmurali3-Jul-07 0:32 
GeneralRe: WEBGRID COUNT Pin
Sandeep Akhare3-Jul-07 0:42
Sandeep Akhare3-Jul-07 0:42 

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

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