Click here to Skip to main content
15,886,752 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: I Want a project using Global.asax file Pin
AprNgp26-Dec-11 17:48
AprNgp26-Dec-11 17:48 
Questionhow to send emails in asp.net(without IIS throught smtp) Pin
MalarGayu21-Dec-11 11:45
MalarGayu21-Dec-11 11:45 
AnswerRe: how to send emails in asp.net(without IIS throught smtp) Pin
Not Active21-Dec-11 12:29
mentorNot Active21-Dec-11 12:29 
GeneralRe: how to send emails in asp.net(without IIS throught smtp) Pin
MalarGayu21-Dec-11 12:58
MalarGayu21-Dec-11 12:58 
GeneralRe: how to send emails in asp.net(without IIS throught smtp) Pin
Not Active21-Dec-11 13:47
mentorNot Active21-Dec-11 13:47 
AnswerRe: how to send emails in asp.net(without IIS throught smtp) Pin
Dalek Dave21-Dec-11 13:27
professionalDalek Dave21-Dec-11 13:27 
JokeRe: how to send emails in asp.net(without IIS throught smtp) Pin
Manfred Rudolf Bihy21-Dec-11 13:47
professionalManfred Rudolf Bihy21-Dec-11 13:47 
GeneralRe: how to send emails in asp.net(without IIS throught smtp) Pin
MalarGayu21-Dec-11 13:48
MalarGayu21-Dec-11 13:48 
hi
thanks for the reply

my problem is i am not able to connect to the smtp server

can anyone help me out

my code is:

in my web.config file i have:

<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network
host="my id address here"
port="25"
defaultCredentials="true"/>


</smtp>
</mailSettings>
</system.net>


my asp.net c# code is

MailMessage msgMail = new MailMessage();
msgMail.To = txtEmail.Text;
SqlCommand slistname = new SqlCommand("select * from list_builder where listid=" + selVal, conn);
drSubGroups = slistname.ExecuteReader();
while (drSubGroups.Read())
{
msgMail.Subject = drSubGroups["ListName"].ToString();
}
SqlCommand sAccoutdet = new SqlCommand("select * from create_account where UserId=" + Session["UserId"].ToString(), conn);
drSubGroups = sAccoutdet.ExecuteReader();
while (drSubGroups.Read())
{
msgMail.From = drSubGroups["EmailId"].ToString();
}
msgMail.Body = "Confirm your subscription";




SmtpMail.SmtpServer = System.Configuration.ConfigurationManager.AppSettings["SMTPServer"];

SmtpMail.Send(msgMail);

K.Gayathri
GeneralRe: how to send emails in asp.net(without IIS throught smtp) Pin
Not Active21-Dec-11 14:50
mentorNot Active21-Dec-11 14:50 
GeneralRe: how to send emails in asp.net(without IIS throught smtp) Pin
MalarGayu21-Dec-11 14:53
MalarGayu21-Dec-11 14:53 
GeneralRe: how to send emails in asp.net(without IIS throught smtp) Pin
Not Active21-Dec-11 15:06
mentorNot Active21-Dec-11 15:06 
GeneralRe: how to send emails in asp.net(without IIS throught smtp) Pin
MalarGayu21-Dec-11 15:11
MalarGayu21-Dec-11 15:11 
GeneralRe: how to send emails in asp.net(without IIS throught smtp) Pin
Not Active21-Dec-11 15:19
mentorNot Active21-Dec-11 15:19 
AnswerRe: how to send emails in asp.net(without IIS throught smtp) Pin
yoager22-Dec-11 1:30
yoager22-Dec-11 1:30 
QuestionAsp.net 4.0 Pin
netJP12L21-Dec-11 4:47
netJP12L21-Dec-11 4:47 
AnswerRe: Asp.net 4.0 Pin
R. Giskard Reventlov21-Dec-11 7:20
R. Giskard Reventlov21-Dec-11 7:20 
AnswerRe: Asp.net 4.0 Pin
Not Active21-Dec-11 7:46
mentorNot Active21-Dec-11 7:46 
GeneralRe: Asp.net 4.0 Pin
netJP12L21-Dec-11 8:48
netJP12L21-Dec-11 8:48 
GeneralRe: Asp.net 4.0 Pin
Not Active21-Dec-11 9:51
mentorNot Active21-Dec-11 9:51 
GeneralRe: Asp.net 4.0 Pin
netJP12L21-Dec-11 10:36
netJP12L21-Dec-11 10:36 
GeneralRe: Asp.net 4.0 Pin
Not Active21-Dec-11 12:26
mentorNot Active21-Dec-11 12:26 
QuestionBulk Insert into database from datatable or dataset or datagrid Pin
yesu prakash21-Dec-11 3:37
yesu prakash21-Dec-11 3:37 
AnswerRe: Bulk Insert into database from datatable or dataset or datagrid Pin
rkrishnach22-Dec-11 1:12
rkrishnach22-Dec-11 1:12 
QuestionBulk Insert into database Pin
yesu prakash21-Dec-11 3:37
yesu prakash21-Dec-11 3:37 
AnswerRe: Bulk Insert into database Pin
R. Giskard Reventlov21-Dec-11 7:21
R. Giskard Reventlov21-Dec-11 7:21 

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.