Jump to content

Mail


 Share

Recommended Posts

  • 2 hafta sonra ...

Ellerinize sağlık. KintaRo hocam sizin verdiğinizi indirdim ilk önce çalışmadı, arkadaşın verdiğini denedim çalışıyor. Acaba ne sorun olabilir ?

Mail in iki kişiye birden gönderilmesini, mesaj olarak sadece bir inputun değil, input7, input8 deki yazanlarında mesaj olarak gönderilmesini istiyorum. Bunu nasıl yapabilirim ?

Edited by Bilinchard
Link to comment
Share on other sites

  • 1 yıl yıl...

Bu örneği biraz geliştirerek açıklamalarla beraber hazırladım.

Ekran Görüntüsü:

91767060.png

Proje Dosyası ve Plugin:
 

http://www.tamotomatik.org/dosya/SMTP.zip

Gönder Button Kodları:
CODE
name = Input.GetText("isim") -- isimdeki metni al
mail = Input.GetText("mail")-- maildeki metni al
subject = Input.GetText("konu") -- konudaki metni al
msg = Input.GetText("mesaj") -- mesajdaki metni al
guvenlik1 = Input.GetText("guvenlik") -- girilen guvenlik kodunu al
guvenlik2 = Paragraph.GetText("Paragraph1") -- gorunen guvenlik kodunu al

-- eğer isim veya mail veya konu veya mesaj boş değilse ve güvenlik1 guvenlik2 ye eşitse
if name ~= "" and mail ~= "" and subject ~= "" and msg ~= "" and guvenlik1 == guvenlik2 then

tblMailProperties = {};
tblMailProperties.FromName = name; -- girilen isim
tblMailProperties.FromEmail = mail; -- girilen mail
tblMailProperties.To = "BURAYA MAİL ADRESİNİZİ YAZIN"; -- gönderilecek adres
tblMailProperties.HtmlBody = msg; -- girilen mesaj
tblMailProperties.Subject = subject; -- girilen konu
tblMailProperties.CC = ""; -- bilgi
tblMailProperties.BCC = ""; -- gizli

tblServerProperties = {};
tblServerProperties.Server = "smtp.gmail.com"; -- smtp adresi
tblServerProperties.ServerPort = 465; -- smtp portu
tblServerProperties.UseSSL = true; -- SSL kullan

tblServerProperties.Authenticated = true; -- Doğrulama
tblServerProperties.UserName = "BURAYA GMAİL ADRESİNİZİ YAZIN"; -- gmail adresiniz
tblServerProperties.PassWord = "BURAYA GMAİL ŞİFRENİZİ YAZIN"; -- şifreniz

Button.SetEnabled("Button1", false) -- buttonu pasif et
result = SMTP.SendMail(tblMailProperties, tblServerProperties, ""); --maili gönder

Dialog.Message("İletişim Formu", "Mesajınız başarıyla gönderildi!", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); -- ok mesajı ver
-- inputlari temizle
Input.SetText("isim", "")
Input.SetText("mail", "")
Input.SetText("konu", "")
Input.SetText("mesaj", "")
else -- hata varsa
Dialog.Message("Hata", "Lütfen gerekli alanları doldurunuz.", MB_OK, MB_ICONSTOP, MB_DEFBUTTON1); -- hata mesajı ver
end
Button.SetEnabled("Button1", true) -- buttonu aktif et

 

 

Kendi smtp Adresimizi Ve Özel Mailimizin Bilgilerini Yazarsak Bu Proje Çalışırmı ??

Link to comment
Share on other sites

Bu örneği biraz geliştirerek açıklamalarla beraber hazırladım.

Ekran Görüntüsü:

91767060.png

Proje Dosyası ve Plugin:
 

http://www.tamotomatik.org/dosya/SMTP.zip

Gönder Button Kodları:
CODE
name = Input.GetText("isim") -- isimdeki metni al
mail = Input.GetText("mail")-- maildeki metni al
subject = Input.GetText("konu") -- konudaki metni al
msg = Input.GetText("mesaj") -- mesajdaki metni al
guvenlik1 = Input.GetText("guvenlik") -- girilen guvenlik kodunu al
guvenlik2 = Paragraph.GetText("Paragraph1") -- gorunen guvenlik kodunu al

-- eğer isim veya mail veya konu veya mesaj boş değilse ve güvenlik1 guvenlik2 ye eşitse
if name ~= "" and mail ~= "" and subject ~= "" and msg ~= "" and guvenlik1 == guvenlik2 then

tblMailProperties = {};
tblMailProperties.FromName = name; -- girilen isim
tblMailProperties.FromEmail = mail; -- girilen mail
tblMailProperties.To = "BURAYA MAİL ADRESİNİZİ YAZIN"; -- gönderilecek adres
tblMailProperties.HtmlBody = msg; -- girilen mesaj
tblMailProperties.Subject = subject; -- girilen konu
tblMailProperties.CC = ""; -- bilgi
tblMailProperties.BCC = ""; -- gizli

tblServerProperties = {};
tblServerProperties.Server = "smtp.gmail.com"; -- smtp adresi
tblServerProperties.ServerPort = 465; -- smtp portu
tblServerProperties.UseSSL = true; -- SSL kullan

tblServerProperties.Authenticated = true; -- Doğrulama
tblServerProperties.UserName = "BURAYA GMAİL ADRESİNİZİ YAZIN"; -- gmail adresiniz
tblServerProperties.PassWord = "BURAYA GMAİL ŞİFRENİZİ YAZIN"; -- şifreniz

Button.SetEnabled("Button1", false) -- buttonu pasif et
result = SMTP.SendMail(tblMailProperties, tblServerProperties, ""); --maili gönder

Dialog.Message("İletişim Formu", "Mesajınız başarıyla gönderildi!", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); -- ok mesajı ver
-- inputlari temizle
Input.SetText("isim", "")
Input.SetText("mail", "")
Input.SetText("konu", "")
Input.SetText("mesaj", "")
else -- hata varsa
Dialog.Message("Hata", "Lütfen gerekli alanları doldurunuz.", MB_OK, MB_ICONSTOP, MB_DEFBUTTON1); -- hata mesajı ver
end
Button.SetEnabled("Button1", true) -- buttonu aktif et

abicim ben tamotomatik.com a giremiyorum neden

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...