Asp bilenler Forum mail sorunu

+ Yorum Gönder
Webmaster ve Sorunlarınız ve İstekleriniz Bölümünden Asp bilenler Forum mail sorunu ile ilgili Kısaca Bilgi
  1. 1
    PROxTECH
    Yeni Üye
    Reklam

    Asp bilenler Forum mail sorunu

    Reklam



    Asp bilenler Forum mail sorunu

    Forum Alev
    Asp forum mail hazır kod olarak aldım herşeyi yaptım hata olarak


    "hata '8004020f' /iletisim/gonder.asp, satır 77" diyor

    77' satırda bu varsadece " .Send"

    Hosta bunalrın hepsi kurulu(CDONTS, CDOSYS, ASPEmail, JMail)
    "değişkenler doğru yaptım burada mail adresi ve bilgiler görünmesind diye deye site adı olarak değiştirdim. kodun düzgün halini verirseniz sevinirim tşkür ederim

    kodlar:
    Kod:
    <%
    
    
    ' degiskenler buraya 
    If request ("email") = "" Then 
    From = "iletisim@siteadi.com" 
    Else
    From =  Request.Form ("email") 
    End If
    
    MailTo = "info@gmail.com"
    ' mail adresiniz yukardan değiştirin ***
    
    mailcomp = "CDOSYS"
    ' Kullandiginiz server hangi compenenti desteliyorsa onu seçin...
    ' CDONTS, CDOSYS, ASPEmail, JMail 
    
    smtp = "webmail.siteadi.com"
    ' domain yerine domaininizi yazin
    %>
    <%
    'Genel Html formatli e-mail
    
        html = "<!DOCTYPE HTML PUBLIC""-//IETF//DTD HTML//TR"">"
        html = html & "<html>"
        html = html & "<head>"
        html = html & "<title>siteadicom / Iletisim Formu</title>"
        html = html & "<link rel=""stylesheet"" type=""text/css"" href=""style.css"">" ' eger css kullaniyorsaniz degistirin ama satiri sakin silmeyin...
        html = html & "</head>"
        html = html & "<body>" 'email bg color
        html = html & "<center><font face=""Tahoma"" style=""font-size: 8pt""> <b>SiteGerekirse.com / Iletisim Formu</b></center>"
        html = html & "<b>ADI SOYADI</b> " & Request.Form("adsoyad")
        html = html & "<br>"
        html = html & "<b>E-POSTA ADRESI</b> " & Request.Form("eposta")
        html = html & "<br>"
        html = html & "<b>TALEBİ</b> " & Request.Form("talebiniz")
        html = html & "<br>"
        html = html & "<b>MESAJ</b> " & Request.Form("mesaj")
        html = html & "<br>"
        html = html & "<b>KULLANICI IP ADRESI :</b> " & Request.ServerVariables("REMOTE_ADDR") 
        html = html & "<p></p>"
        html = html & "<b>---------------------------------------------------------</b>"
        html = html & "</font></body>"
        html = html & "</html>"
    '  *** Degiskenler sonu ***
    %>
    <%
    '  ***   SAKIN ASAGIDAKI KODLARI DEGISTIRMEYIN    ***
    ' Hangi mail componentini kullaniyorsunuz?
    if mailcomp = "CDOSYS" then    
        set imsg = createobject("cdo.message")
        set iconf = createobject("cdo.configuration")
        Set Flds = iConf.Fields
        With Flds
       .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
       .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtp
       .Update
       End With
       With iMsg
       Set .Configuration = iConf
            .To = MailTo
            .From = From
            .Subject = Request.Form("Subject")
            .HTMLBody = HTML
            .fields.update
            .Send
        End With
        set imsg = nothing
        set iconf = nothing
        set HTML = nothing    
    else
    
    if mailcomp = "CDONTS" then
    
       Set Avanos = CreateObject("CDONTS.NewMail")
        Avanos.From= From
        Avanos.To= MailTo
        Avanos.Subject= Request.Form("Subject")
        Avanos.BodyFormat=0
        Avanos.MailFormat=0
        Avanos.Body=HTML
        Avanos.Send
        set HTML = nothing
        set Avanos=nothing
        else
        
    if mailcomp = "ASPEmail" then
        Set WSweb = Server.CreateObject("Persits.MailSender")
        WSweb.Host = smtp
        WSweb.From = From
        WSweb.AddAddress MailTo
        WSweb.Subject = Request.Form("Subject")
        WSweb.Body = HTML
        WSweb.IsHTML = True            
        WSweb.Send
        set WSweb = Nothing
        set HTML = Nothing
        else
        
    if mailcomp = "JMail" then
        set msg = Server.CreateObject( "JMail.Message" )
        msg.Logging = true
        msg.ContentType = "text/html"
        msg.From = From
        msg.AddRecipient = MailTo
        msg.Subject = Request.Form("Subject")
        msg.Body = HTML
        msg.Send( smtp )
        Set msg = Nothing
        set HTML = Nothing
    
    end if
    end if
    end if
    end if
    %>
    
    
    
    <style type="text/css">
    <!--
    A {
    TEXT-DECORATION: none
    }
    A:visited {
    TEXT-DECORATION: none
    }
    A:active {
    TEXT-DECORATION: none
    }
    A:hover {
    TEXT-DECORATION: underline
    }
    body {
        margin:0px; scrollbar-arrow-color: black;
    scrollbar-face-color: white;
    scrollbar-highlight-color: white;
    scrollbar-shadow-color: black;
    scrollbar-track-color: white
    }
    table {
        font-family:Verdana;
        font-size: 11px;
        color:#333333;
    }
    .style1 {
        color: #A62626;
        font-size: 24px;
        font-weight: bold;
    }
    .link {
        color:#333333;
    }
    -->
    </style>
    <br>
    <div align="center">
    
        <table border="0" width="500" id="table1" cellpadding="0" style="border-collapse: collapse" height="220">
            <tr>
                <td valign="top">
                <table border="0" width="100%" id="table2" height="30" cellpadding="0" style="border-collapse: collapse">
                    <tr>
                        <td width="11"><img src="images/uppermenu_left.gif" border="0"></td>
                        <td background="images/uppermenu_bg.gif">
                        <p align="center"><b>
                        <font face="Tahoma" size="2" color="#000000">Premier Tasarım<a href="http://www.sitegerekirse.com"><font color="#000000"> / İ</font></a>letişim 
                        Formu</font></b></td>
                        <td width="11"><img src="images/uppermenu_right.gif" border="0"></td>
                    </tr>
                </table>
                <table border="0" width="100%" id="table3" cellpadding="0" style="border-collapse: collapse">
                    <tr>
                        <td height="10"></td>
                    </tr>
                </table>
                <table border="0" width="100%" id="table3" cellpadding="0" style="border-collapse: collapse" height="23">
                    <tr>
                        <td height="23">
                        <p align="center">
                        <font face="Tahoma" size="2" color="#CC0000"><b>MESAJINIZ GÖNDERİLMİŞTİR</b></font></td>
                    </tr>
                </table>
                <table border="0" width="100%" id="table3" cellpadding="0" style="border-collapse: collapse">
                    <tr>
                        <td height="10"></td>
                    </tr>
                </table>
                <div align="center">
                    <table border="0" width="354" id="table3" cellpadding="0" style="border-collapse: collapse">
                    <tr>
                        <td height="25" valign="top"><b>
                        <font color="#CC0000" size="1" face="Tahoma">Mesaj 
                        Bilgileriniz</font></b></td>
                    </tr>
                </table>
                </div>
                <div align="center">
                    <table border="0" width="354" id="table4" cellpadding="0" style="border-collapse: collapse" height="123">
                        <tr>
                            <td width="134" height="21"><img src="images/c_2.gif" border="0">
                            <font color="#000000" face="Tahoma"><b>AD SOYAD </b>
                            </font> </td>
                            <td width="38" height="21">
                            <font color="#000000" face="Tahoma"><b>:</b></font></td>
                            <td width="182" height="21"><%=request("adsoyad")%></td>
                        </tr>
                        <tr>
                            <td width="134" height="10"></td>
                            <td width="38" height="10"></td>
                            <td width="182" height="10" valign="top"></td>
                        </tr>
                        <tr>
                            <td width="134" height="21"><img src="images/c_2.gif" border="0">
                            <font color="#000000" face="Tahoma"><b>E - POSTA </b>
                            </font> </td>
                            <td width="38" height="21">
                            <font color="#000000" face="Tahoma"><b>:</b></font></td>
                            <td width="182" height="21"><%=request("eposta")%></td>
                        </tr>
                        <tr>
                            <td width="134" height="10"></td>
                            <td width="38" height="10"></td>
                            <td width="182" height="10" valign="top"></td>
                        </tr>
                        <tr>
                            <td width="134" height="21"><img src="images/c_2.gif" border="0">
                            <font color="#000000" face="Tahoma"><b>TALEBİNİZ  </b>
                            </font>  </td>
                            <td width="38" height="21">
                            <font color="#000000" face="Tahoma"><b>:</b></font></td>
                            <td width="182" height="21"><%=request("talebiniz")%></td>
                        </tr>
                        <tr>
                            <td width="134" height="10"></td>
                            <td width="38" height="10"></td>
                            <td width="182" height="10" valign="top"></td>
                        </tr>
    
                        <tr>
                            <td width="134" height="21"><img src="images/c_2.gif" border="0">
                            <font color="#000000" face="Tahoma"><b>MESAJINIZ </b>
                            </font> </td>
                            <td width="38" height="21">
                            <font color="#000000" face="Tahoma"><b>:</b></font></td>
                            <td width="182" height="21">
                            <%=request("mesaj")%></td>
                        </tr>
                        <tr>
                            <td width="134" height="10"></td>
                            <td width="38" height="10"></td>
                            <td width="182" height="10" valign="top"></td>
                        </tr>                    <tr>
                            <td colspan="3">&nbsp;</td>
                        </tr>
                    </table>
                </div>
                </td>
            </tr>
        </table>
    </div>




  2. 2
    PROxTECH
    Yeni Üye

    --->: Asp bilenler Forum mail sorunu

    Reklam



    cevapalrnızı bekliyorum arkadaşalr







  3. 3
    Hasan
    Özel Üye
    Ard Arda Mesaj Atmak Yasaktır.
    Lütfen Cevap Beklerken Sabırlı Olun.







+ Yorum Gönder
5 üzerinden | Toplam : 0 kişi