Click here to Skip to main content
15,919,931 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: How to send email? Pin
Richard MacCutchan17-Oct-09 21:42
mveRichard MacCutchan17-Oct-09 21:42 
GeneralRe: How to send email? Pin
CalvinHartwell19-Oct-09 12:20
CalvinHartwell19-Oct-09 12:20 
QuestionHow to display text(Lyrics) when a link is clicked? [modified] Pin
CoderForEver17-Oct-09 1:13
CoderForEver17-Oct-09 1:13 
QuestionQuery EA Sports Madden Server Pin
Russell Colwell16-Oct-09 8:17
Russell Colwell16-Oct-09 8:17 
AnswerRe: Query EA Sports Madden Server Pin
David Mujica16-Oct-09 8:25
David Mujica16-Oct-09 8:25 
QuestionHow to date time picker inside an asp datagrid Pin
EcK3kO14-Oct-09 14:36
EcK3kO14-Oct-09 14:36 
QuestionSimple HTML Email Submission Pin
benji0814-Oct-09 10:29
benji0814-Oct-09 10:29 
AnswerASP.net code to send email Pin
David Mujica14-Oct-09 10:50
David Mujica14-Oct-09 10:50 
Here is a piece of ASP.net code that you could use to send an email.

  Private Sub MailIt(ByVal toUser As String, ByVal fromUser As String, ByVal subj As String, ByVal sBody As String)<br />
            Try<br />
                Dim mm As New MailMessage(fromUser, toUser)<br />
<br />
                mm.Subject = subj<br />
                mm.Body = sBody<br />
                mm.IsBodyHtml = True<br />
<br />
                ' Create the SmtpClient object<br />
                Dim smtp As New SmtpClient<br />
<br />
                ' Send the MailMessage (will use the Web.config settings)<br />
                smtp.Send(mm)<br />
            Catch ex As Exception<br />
' Put some error handling code here<br />
            End Try<br />
<br />
        End Sub


In your web.config, you put the details of your email server ...
<system.net>
	<mailSettings>
		<smtp>
		  <network host="myMailServer.com" port="25" userName="myUser" password="myPassword"/>
		</smtp>
	</mailSettings>
</system.net>

GeneralRe: ASP.net code to send email Pin
benji0814-Oct-09 13:12
benji0814-Oct-09 13:12 
GeneralRe: ASP.net code to send email Pin
CoderForEver18-Oct-09 18:25
CoderForEver18-Oct-09 18:25 
QuestionUsing a CheckBoxList inside of a Calendar control ? Pin
Daniel23514-Oct-09 8:35
Daniel23514-Oct-09 8:35 
QuestionASP.Net HTML Editor at Runtime? Pin
hifiger200412-Oct-09 22:14
hifiger200412-Oct-09 22:14 
Questionhosting website for JSP platform Pin
sangeeta200912-Oct-09 7:40
sangeeta200912-Oct-09 7:40 
AnswerRe: hosting website for JSP platform Pin
Aman Bhullar12-Oct-09 19:05
Aman Bhullar12-Oct-09 19:05 
GeneralRe: hosting website for JSP platform Pin
sangeeta200914-Oct-09 4:59
sangeeta200914-Oct-09 4:59 
QuestionPlans, Guidelines and Decisions for a Charity Web Application Project Pin
Voulnet12-Oct-09 3:56
Voulnet12-Oct-09 3:56 
AnswerRe: Plans, Guidelines and Decisions for a Charity Web Application Project [Crosspost] Pin
Richard MacCutchan12-Oct-09 5:03
mveRichard MacCutchan12-Oct-09 5:03 
QuestionDoes not Work - Literal1 control in MasterPage.Master Pin
hifiger200411-Oct-09 7:59
hifiger200411-Oct-09 7:59 
AnswerRe: Does not Work - Literal1 control in MasterPage.Master Pin
Christian Graus11-Oct-09 10:54
protectorChristian Graus11-Oct-09 10:54 
GeneralRe: Does not Work - Literal1 control in MasterPage.Master Pin
hifiger200412-Oct-09 21:41
hifiger200412-Oct-09 21:41 
QuestionThe maximum report processing jobs limit configured by your system administrator has been reached. Pin
singh.sunder10-Oct-09 19:54
singh.sunder10-Oct-09 19:54 
AnswerRe: The maximum report processing jobs limit configured by your system administrator has been reached. Pin
Richard MacCutchan10-Oct-09 21:53
mveRichard MacCutchan10-Oct-09 21:53 
AnswerRe: The maximum report processing jobs limit configured by your system administrator has been reached. Pin
Mohanraj Selvarathinam7-Jun-11 20:04
Mohanraj Selvarathinam7-Jun-11 20:04 
QuestionSherd server Issues? Pin
DSP3710-Oct-09 6:44
DSP3710-Oct-09 6:44 
AnswerRe: Sherd server Issues? Pin
Marc Firth12-Oct-09 3:44
Marc Firth12-Oct-09 3:44 

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.