Eklenme: 18-10-2006, 14:28 - Gösterim: 4754
Jmail componenti ile nasıl e-mail gönderebilirim?
|
Jmail Windows 2003 server sistemlerimiz üzerinde kullanılan e-mail işlemleri için gerekli componenttir. Aşağıda bu component ile nasıl mesaj gönderebileceğinize dair örnek bir script bulunmaktadır.
On Error Resume Next Set smtp = Server.CreateObject("JMail.Message")
For Each veri In Request.Form msg = msg & veri & ": " & Request.Form(veri) & " " Next
smtp.ContentType = "text/html" smtp.Charset = "ISO-8859-9"
smtp.AddRecipient "gonderilecekposta@adresi.com" smtp.from = "gonderen@mail.com" smtp.fromname = "Web Form" smtp.MailServerUserName = "gonderen@mailusername.com" smtp.MailServerPassWord = "emailsifreniz" smtp.Subject = "Mesaj Başlığı" smtp.body = msg smtp.Send("mail.sadecehosting.com")
if err then response.Write err.Description & " Hata Mesajınız" else response.Write("Sonuç Mesajınız") end if
set smtp = Nothing
|
|