auto mail
jeg har et lille problem med et aspx mail script.her er koden
<%@ Page Language="VB" Debug="true" %>
<%@ import Namespace="System.Web.Mail" %>
<%@ import Namespace="System.Data" %>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Dim objEmail as New MailMessage()
objEmail.From = "biuro@runningdinner.pl"
objEmail.Subject = "AUTOMAIL (Potwierdzenie wpisu)"
objEmail.Body = "Imie = " & Request.QueryString("firstname") & VbCrLf & "Nazwisko = " & Request.QueryString("lastname") & VbCrLf & "Plec = " & Request.QueryString("sex") & VbCrlf & "Data urodzenia = " & Request.QueryString("dato") & VbCrlf & "E-mail = " & Request.QueryString("email") & VbCrlf & "Password = " & Request.QueryString("pass") & VbCrlf & "Telefon = " & Request.QueryString("phone") & VbCrlf & "Mobil = " & Request.QueryString("mobil") & VbCrlf & "Mozemy wyslac ci sms? = " & Request.QueryString("sms") & VbCrlf & "Zainteresowania = " & Request.QueryString("hobby") & VbCrlf & "Stanowisko = " & Request.QueryString("job") & VbCrlf & "Adres = " & Request.QueryString("address") & VbCrlf & "Kod pocztowy = " & Request.QueryString("postcode")& VbCrlf & "Miasto = " & Request.QueryString("city") & VbCrlf & "Moge wydac obiad = " & Request.QueryString("food") & VbCrlf & "Wzrost = " & Request.QueryString("height") & VbCrlf & "Waga = " & Request.QueryString("weight") & VbCrlf & "Ktory program preferujesz = " & Request.QueryString("prog") & VbCrlf & "Uzasadnij = " & Request.QueryString("argument") & VbCrlf & "Jakim typem jestes? = " & Request.QueryString("description")
SmtpMail.SmtpServer = "poczta.top100.net.pl"'o.b.s du må lave noget om i denne linje
objEmail.To = "biuro@runningdinner.pl"
objEmail.To = Request.QueryString("email")
SmtpMail.Send(objEmail)
End Sub
</script>
problemet er at den kun sender mailen til den nederste objEmail.To. den der henter mail adressen fra en text box.
Jeg vil blive meget glad hvis der er en der ved hvordan jeg for send mailen til 2 emailadresser.
