GonderenMail = "xxx@mail.com"
GidecekMail = "xxx@mail.com"
MailKonu = "Mail Konusu"
Body = "İçerik"
set NesneMail = server.createobject("CDO.Message")
NesneMail.From = GonderenMail
NesneMail.To = GidecekMail
NesneMail.HTMLBody = Body
NesneMail.Subject = MailKonu
with NesneMail.Configuration
.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = "25" .Fields.Update
end with
On Error Resume Next
NesneMail.Send
If Err <> 0 Then
Response.Write "Error: " & Err.Description
End If
set NesneMail = NothingBu kodları kullanaiblirsin. mail konu body vs. bunlara response.request eklersen ve bir formdan veri gönderirsen sorunsuz çalışacaktır.
CDOSYS bileşenini kullanmaktadır.
Eğer hiç bilginiz yoksa özelden ulaşın bana sizin için yazayım buraya.
İyi Çalışmalar