Click here to Skip to main content
15,666,926 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: ASP.NET inline code - architectural question Pin
kubben7-May-07 1:44
kubben7-May-07 1:44 
GeneralRe: ASP.NET inline code - architectural question Pin
Gennady Oster7-May-07 2:08
Gennady Oster7-May-07 2:08 
AnswerRe: ASP.NET inline code - architectural question Pin
Justin Bozonier6-May-07 18:46
Justin Bozonier6-May-07 18:46 
GeneralRe: ASP.NET inline code - architectural question Pin
Gennady Oster6-May-07 21:11
Gennady Oster6-May-07 21:11 
GeneralRe: ASP.NET inline code - architectural question Pin
Justin Bozonier6-May-07 21:22
Justin Bozonier6-May-07 21:22 
QuestionHTML in outlook 2007 Pin
samerh6-May-07 6:21
samerh6-May-07 6:21 
QuestionMissing box in Checkbox Control Pin
Kamalmostofi6-May-07 6:05
Kamalmostofi6-May-07 6:05 
Questionsend mail via asp.net Pin
keroed_edmond6-May-07 5:54
keroed_edmond6-May-07 5:54 
i am trying to send a mail from an asp.net page this is what i did code wise

<br />
MailMessage mailMessage;<br />
mailMessage = new MailMessage();<br />
<br />
//set properties<br />
mailMessage.To = "mail1@yahoo.com";<br />
mailMessage.From ="mail1_Test@Keroed_corp.com";<br />
<br />
//If you want to CC this email to someone else...<br />
mailMessage.Cc = "mail2@hotmail.com";<br />
<br />
//If you want to BCC this email to someone else...<br />
mailMessage.Bcc = "mailingKE@gmail.com";<br />
<br />
//Send the email in text format<br />
//(to send HTML format, change MailFormat.Text to MailFormat.Html)<br />
mailMessage.BodyFormat = MailFormat.Text;<br />
<br />
//Set the priority - options are High, Low, and Normal<br />
mailMessage.Priority = MailPriority.Normal;<br />
<br />
//set subject<br />
mailMessage.Subject ="Test Mail";<br />
<br />
//set body<br />
string bodyText ="Testing send Mail" + Environment.NewLine + "Hopefull this works";<br />
mailMessage.Body = bodyText;<br />
<br />
//set smtp mail server<br />
SmtpMail.SmtpServer = "";<br />
<br />
//send mail<br />
SmtpMail.Send(mailMessage);<br />


i this works because when i go into C:\Inetpub\mailroot\Queue i see the mails that the page tried to send so i am wondering if i need to do some further configuring to my smtp server in IIS

kenny
AnswerRe: send mail via asp.net Pin
Guffa6-May-07 7:03
Guffa6-May-07 7:03 
Questioncan not execute Javascript code in webForm that inherited from MasterPage. Pin
hdv2126-May-07 2:35
hdv2126-May-07 2:35 
AnswerRe: can not execute Javascript code in webForm that inherited from MasterPage. Pin
Guffa6-May-07 3:22
Guffa6-May-07 3:22 
AnswerRe: can not execute Javascript code in webForm that inherited from MasterPage. Pin
enjoycrack6-May-07 3:24
enjoycrack6-May-07 3:24 
QuestionHelp Please Pin
yasso_1155-May-07 23:46
yasso_1155-May-07 23:46 
AnswerRe: Help Please Pin
Arun.Immanuel6-May-07 1:27
Arun.Immanuel6-May-07 1:27 
GeneralRe: Help Please Pin
Guffa6-May-07 3:32
Guffa6-May-07 3:32 
Questionasp.net Pin
meromeroo5-May-07 23:46
meromeroo5-May-07 23:46 
AnswerRe: asp.net Pin
Guffa6-May-07 3:25
Guffa6-May-07 3:25 
AnswerRe: asp.net Pin
enjoycrack6-May-07 3:26
enjoycrack6-May-07 3:26 
QuestionGridview Pin
A kamath5-May-07 22:57
A kamath5-May-07 22:57 
AnswerRe: Gridview Pin
MinhajuddinK5-May-07 23:26
MinhajuddinK5-May-07 23:26 
GeneralRe: Gridview Pin
A kamath5-May-07 23:49
A kamath5-May-07 23:49 
GeneralRe: Gridview Pin
MinhajuddinK11-May-07 17:24
MinhajuddinK11-May-07 17:24 
GeneralRe: Gridview Pin
A kamath11-May-07 18:59
A kamath11-May-07 18:59 
QuestionSecurity Exception .. PLz Help Pin
deepaks35-May-07 22:14
deepaks35-May-07 22:14 
AnswerRe: Security Exception .. PLz Help Pin
Guffa6-May-07 3:35
Guffa6-May-07 3:35 

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.