Casper koxp,1962 koxp,koxp 1962,koxp tt smarty,smarty tt,hapis bot,mapustt,mapus bot,bot hapis,m
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Casper koxp,1962 koxp,koxp 1962,koxp tt smarty,smarty tt,hapis bot,mapustt,mapus bot,bot hapis,m

Casper koxp,1962 koxp,koxp 1962,koxp tt smarty,smarty tt,hapis bot,mapustt,mapus bot,bot hapis,m
 
AnasayfaGaleriAramaLatest imagesKayıt OlGiriş yap

 

 form mail hazirlama

Aşağa gitmek 
YazarMesaj
shersery24

shersery24


Mesaj Sayısı : 53
Kayıt tarihi : 15/08/09

form mail hazirlama Empty
MesajKonu: form mail hazirlama   form mail hazirlama EmptyPaz Ocak 31, 2010 11:06 pm

Forrm Mail
Örnek:


Kod:
<html>
<head>
<title> MAIL GONDER </title>
</head>
<body>
<form method=post action="mail.asp">
Isim : <input type="text" name="isim"><br>
Mail : <input type="text" name="mail"><br>
Konu : <input type="text" name="konu"><br>
Mesaj : <textarea name="mesaj" rows="" cols=****</textarea><br>
<input type="submit" value="yolla">
</form>
</body>
</html>CDO İLE MAIL YOLLAMA
En yaygın mail gonderme bileşenidir

mail.asp (CDO ile)


Kod:
<%
' formdan içerik al
isim = Request.form("isim")
mail = Request.form("mail")
konu = Request.form("konu")
mesaj = Request.form("mesaj")

' mektup kime gidecek abisi

kime = "admin@site-adi.com"
' bir CDO Newmail nesne ornegi yarat
Set mektup = Server.CreateObject("CDONTS.NewMail")
' çok açik, geleneksel atamalar
mektup.From = isim & " <" & mail & ">"
mektup.To = kime
mektup.Subject = konu
mektup.Body = mesaj
' hata olursa mizikçilik yapmadan devam et
on error resume next
' ve sadede geldik.
mektup.Send
' hata olusursa

If err <> 0 Then
hata = err.description
Response.Write "hata oldu: " & hata
Else ' is temizse
tebrik = "Mailiniz yolladı"
Response.Write tebrik
End If
' açtigin nesneyi kapa...
Set mektup = Nothing
' bitti
%>JMAIL ILE MAIL YOLLAMA
mail.asp (JMAIL ile )


Kod:
<%
' formdan içerik al
isim = Request.form("isim")
mail = Request.form("mail")
konu = Request.form("konu")
mesaj = Request.form("mesaj")
' mektup kime gidecek abisi...
kime = "admin@site-adi.com"
' bir JMail SMTPMail nesnesi...
Set mektup = Server.CreateObject("JMail.SMTPMail")
' SMTP sunucusu
mektup.ServerAddress = "mail.Server.here"
' gonderen
mektup.Sender = isim & " <" & mail & ">"

' konu
mektup.Subject = konu
' aliciyi belirle
mektup.AddRecipient = kime
mektup.Body = mesaj
On Error Resume Next
mektup.Execute
' hata varsa
If err <> 0 Then
hata = err.description
Response.Write "hata oldu: " & hata
Else ' is temizse
tebrik = "mailiniz yolladı"
Response.Write tebrik
End If
Set mektup = Nothing
%>
Sayfa başına dön Aşağa gitmek
 
form mail hazirlama
Sayfa başına dön 
1 sayfadaki 1 sayfası

Bu forumun müsaadesi var:Bu forumdaki mesajlara cevap veremezsiniz
Casper koxp,1962 koxp,koxp 1962,koxp tt smarty,smarty tt,hapis bot,mapustt,mapus bot,bot hapis,m :: PROGRAMLAMA :: Asp-PErl-Html-Php-
Buraya geçin: