|
| huuson : On April 14, 2008 2:01 PM said: |
In this video, i see you can send email in localhost.
private void SendMail(string from, string body)
{
string mailServerName = "SMTP.MyDomain.com";
MailMessage message = new MailMessage(from, "scott@vertigosoftware.com", "feedback", body);
SmtpClient mailClient = new SmtpClient();
mailClient.Host = mailServerName;
mailClient.Send(message);
message.Dispose();
}
On my computer,How do I rewrite that code ?
|
|
|
| Matt3.5 : On April 16, 2008 5:35 AM said: |
I suggest you visit a site called 4guysfromrolla.com
There you will find several, well written articles, showing you in detail how to send basic - complex emails using the system.net.mail class. The author is Scott Mitchell, a well respected MVP.
|
|
|
| cemakpolat : On April 21, 2008 4:00 AM said: |
i can't download this video and the others,also i can't watch it.
|
|
|
| Diego Vieira : On May 23, 2008 3:49 PM said: |
cemakpolat, you just have to click the "Download the video" link and save it to your desktop. To watch the video you can download a codec pack from the internet. Just do a search for "codec pack".
|
|
|
|
|
| cinstress2 : On June 01, 2008 3:36 PM said: |
How do you get all the data to email.
the code from the example says
Protected Sub Wizard1_FinishButtonClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.WizardNavigationEventArgs) Handles Wizard1.FinishButtonClick
SendMail(txtEmail.Text, txtComments.Text)
End Sub
How do you get the ratings and person's name to show up.
I tried adding these in the SendMail area... but it only allows two items. How do you get all the fields to appear in the email that is sent to you?
|
|
|
| mikaelKP : On June 04, 2008 12:19 PM said: |
Use
Protected Sub Wizard1_FinishButtonClick(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.WizardNavigationEventArgs) Handles Wizard1.FinishButtonClick
SendMail(txtEmail.Text, txtComments.Text, txtName.Text)
End Sub
You can fill all the txtSomthing.Text as you want
I have no problem with this method:)
|
|
|
| cburts : On June 22, 2008 5:53 AM said: |
Hello,
I copied the code and config file into a new Asp.Net 3.5 website I created in VB Web Developer Express 2008 and I get an Operation has timed out error after I click the Finish button (takes a long time). Source error: Line 16 mailClient.Send(message)
Stack Trace:
[SmtpException: The operation has timed out.]
System.Net.Mail.SmtpClient.Send(MailMessage message) +1948
_Default.SendMail(String from, String body) in C:\Users\websitepath\Default.aspx.vb:16
_Default.Wizard1_FinishButtonClick(Object sender, WizardNavigationEventArgs e) in C:\Users\websitepath\Default.aspx.vb:8
System.Web.UI.WebControls.Wizard.OnFinishButtonClick(Wizard NavigationEventArgs e) +105
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +693
System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Ob ject source, EventArgs args) +17
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEve ntHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746
|
|
|
| David007 : On June 22, 2008 8:13 AM said: |
Hi,
I did this with VS2005 and used "localhost". I moved it to 2003 server and works great. I would like to populate the "Summary" section. I've never used the wizzard before.
Please show me how to populate 1 label and I will take it from there !
Thank You in Advance
David007
PS- Love the videos !
|
|
|
| dollu : On July 14, 2008 3:16 PM said: |
I am getting following error while coding the last page.. Can you help me understand where am I wrong??
The rest of the code is working finr, since I checked it after very next step..
_________________________________________________________
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: BC30203: Identifier expected.
Source Error:
Line 35: Private Sub SendMail(ByVal from As String, ByVal body As String)
Line 36: Dim mailServerName As String = "mail.yahoo.com"
Line 37: Dim message As MailMessage = New MailMessage(from. "hi_dollu@yahoo.com". "feedback".body)
Line 38: Dim mailClient As SmtpClient = New SmtpClient
Line 39:
|
|
|
| brooxy28 : On July 14, 2008 9:59 PM said: |
|
|
|
|
| nickchen88 : On July 29, 2008 7:00 AM said: |
How do i populate the the summary section. its not show in the video...pls help
|
|
|
| cv_vikram : On August 08, 2008 11:10 AM said: |
|
|
|
|
| johncarerra : On August 26, 2008 8:26 PM said: |
why i see blank black screen after you show you got an email..
btw thanx hope can get full version of it
|
|
|
| tmorton : On August 27, 2008 2:23 PM said: |
The .zip file does not seem corrupted to me. I was able to download it, extract the .wmv file, and watch it in Windows Media Player 11.
|
|
|
| khmohsin : On September 18, 2008 9:05 AM said: |
How do you get the ratings ,person's name and other custom fields information show up.
I am unable to add them
|
|
|
| nivlemnohj : On September 29, 2008 6:18 PM said: |
Hi!
How to authenticate username and password with specific smtp port?
tnx
|
|
|
| samuel24 : On September 30, 2008 7:11 AM said: |
good thanx @@@@@@@@
great job!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
| rajar32 : On October 24, 2008 5:48 AM said: |
|
|
|
|
|
|
| klakieros : On November 14, 2008 5:04 AM said: |
Guys,
Great video - very helpful.
I've got one problem, the javascript in the code is not working with my browser... I even copied the code into new project and tried - nothing. I have checked that my browser is javascript enabled. It's IE 7.0.5730.13
Any ideas?
|
|