Email from Webpage

Discussion in 'ASP.NET / ASP.NET Core' started by integratedp, Jul 9, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hello All,

    I sent a sample email from my webpage,
    code is below. Worked great, the only
    problem is no matter what I put in the
    body it keeps sending thebody from the
    first test email. Anyone know what I am
    doing wrong?

    Thank You,

    Paul




    Dim email1 As New System.Web.Mail.MailMessage


    email1.To = "[email protected]"


    email1.From = "[email protected]"


    email1.Body = "10,10" & vbCrLf & "0,0"


    email1.Subject = "Test"


    System.Web.Mail.SmtpMail.SmtpServer = "localhost"


    System.Web.Mail.SmtpMail.Send(email1)


    email1 = Nothing
     
  2. Seems it just keeps sending the same email


    again, and again. I tried the following and it


    sent me the original email again even though


    I forgot the change the [email protected] to


    my acutal email address. So the below sends


    me a email even thougth the address is wrong.


    The email is the original


    Note: I tried SMTP still no luck.


    Thanks,


    Paul


    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click


    If Page.IsValid() Then


    Dim email1 As New System.Web.Mail.MailMessage


    Dim smail1 As SmtpMail


    email1.To = "[email protected]"


    email1.From = "[email protected]"


    email1.Body = "10,10" & vbCrLf & "0,0"


    email1.Subject = "Test"


    smail1.SmtpServer = "localhost"


    smail1.Send(email1)


    email1 = Nothing


    End If


    End Sub
     
  3. My index.aspx file is not updating. Form


    vs.net 03 I use project>copyproject...


    I am prompted to update my index.asp


    file and others and all goes fine. But


    I keep getting the original page, which


    is why I keep getting the same email.


    How do I update my page?





    Thanks,


    Paul
     
  4. Bruce

    Bruce DiscountASP.NET Staff

    did you upload the dll file to the bin directory?

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  5. Hey Bruce, I did and it still did not work.


    I contacted technical support and it is


    now working fine. Not sure what was


    done.


    Thank You,


    Paul
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page