Üyelik işlemlerinizde, iletişim sayfalarınızda kullanabileceğiniz ASP kodları:Siteniz üzerinden gmail’i kullanarak mail gönderin:body=”Maile gidecek yazı burada olsun”Dim iMsg, iConf, FldsSet iMsg = CreateObject(”CDO.Message”)Set iConf = CreateObject(”CDO.Configuration”)Set Flds = iConf.Fieldsschema = “http://schemas.microsoft.com/cdo/configuration/”Flds.Item(schema & “sendusing”) = 2Flds.Item(schema & “smtpserver”) = “smtp.gmail.com”Flds.Item(schema & “smtpserverport”) = 465Flds.Item(schema & “smtpauthenticate”) = 1Flds.Item(schema & “sendusername”) = “googlehesabı[email protected]”Flds.Item(schema & “sendpassword”) = “sifren”Flds.Item(schema & “smtpusessl”) = 1Flds.UpdateWith iMsg.To = email.From = “googlehesabı[email protected]”.Subject = “Mail konusu”.HTMLBody = Body ‘yukarıdaki body kısmı.Sender = “[email protected]”.Organization = “http://www.siteniz.com”.ReplyTo = “[email protected]”Set .Configuration = iConfSendEmailGmail = .SendEnd WithSet iMsg = NothingSet iConf = NothingSet Flds = Nothing
Kendinize göre değiştireceğiniz alanlar:Flds.Item(schema & “sendusername”) = “googlehesabı[email protected]
Gmail hesabınızı buraya yazın.Flds.Item(schema & “sendpassword”) = “sifren”
Gmail şifrenizi buraya yazın.Body
Mail alanınız, tavsiye formu oluştururduğunuzda bu alanı kullanabilirsiniz. Örnek:body=”Merhaba,
Arkadaşınız xxx size [url]www.xxx.com/[/url] sayfasını tavsiye etti …”.To = request.form(”email”)
Formdan gelen email değeri burda.From = “[email protected]
Gönderdiğiniz mailde gönderen olarak görünen mail adresiniz.Subject = “Mail konusu”
Mailizin konusu.HTMLBody = Body
Tanımladığımız mail alanı.Sender = “[email protected]
Gönderen mail.Organization = “http://www.siteniz.com”Burası gayet açık.ReplyTo = “[email protected]
Cevap yazılmasını istediğiniz alanKolay gelsin, iyi çalışmalar.