Jump to content

Mail


 Share

Recommended Posts

m9yhy0.jpg



Kaynak :
---FIRE BIRD smtp sender....
tblMailProperties = {};
tblMailProperties.FromName = (Input.GetText("Input1"));
tblMailProperties.FromEmail = "gonderen-mail"; 
tblMailProperties.To = (Input.GetText("Input2"));

tblMailProperties.HtmlBody = (Input.GetText("Input4"));
tblMailProperties.Subject = (Input.GetText("Input3"));
tblMailProperties.CC = "";
tblMailProperties.BCC = "";

-- Server Properties : gmail adresi olanlara gore duzenlendi...
tblServerProperties = {};
tblServerProperties.Server = "smtp.gmail.com";
tblServerProperties.ServerPort = 465;
tblServerProperties.UseSSL = true;

tblServerProperties.Authenticated = true; 
tblServerProperties.UserName = "kullaniciadi"; 
tblServerProperties.PassWord = "gmail-sifreniz";           

-- Gonder.... 
result = SMTP.SendMail(tblMailProperties, tblServerProperties, tblAttachments);



Apz

http://www.4shared.com/file/ayxTUTSx/SMTP.html[/CODE]



SMTP Action Plugin

[CODE]http://www.amsplugins.com/download.asp?ID=78&CID=1&SEC=58366f4339b7788914d3c8fa1713e291[/CODE]

Edited by FİRE BİRD
Link to comment
Share on other sites

result = SMTP.SendMail(tblMailProperties, tblServerProperties, tblAttachments);[/CODE]

yerine;

[CODE]result = SMTP.SendMail(tblMailProperties, tblServerProperties, "");[/CODE]

yazarsan daha doğru olacaktır. Atatchments tablosunu kaldırmışsın çünkü. murathassoy'un iletişim formunda kullanmıştım bu eklentiyi. Ordan aklımda kalmış.

Ayrıca SMTP plugini olmadan bu örnek çalışmayacaktır. SMTP pluginini Reteset'in sitesinden indirebilirsiniz;

[CODE]http://www.amsplugins.com/details.asp?ID=78&CID=1[/CODE]

İndirdikten sonra \Program Files\AutoPlay Media Studio 7.0\Plugins\Actions\ klasörüne atıp pluginlerden etkinleştirmeniz gerekir.

Link to comment
Share on other sites

hocam yeni indirdim daha incelemedim ama attığımız mail kim adına gidecek. yani karşı tarafta ne görünecek. :D

Kimden....

tblMailProperties.FromEmail = "gonderen-mail";

Gönderenin kim olduğu gizlenemez..

tblServerProperties.UserName = "kullaniciadi";

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[/CODE]

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

Edited by KintaRo
Link to comment
Share on other sites

İlk mesajımda belirttiğim gibi SMTP pluginini kurmazsanıoz çalışmaz.

http://www.amsplugins.com/details.asp?ID=78&CID=1[/CODE]

İndirdikten sonra \Program Files\AutoPlay Media Studio 7.0\Plugins\Actions\ klasörüne atıp pluginlerden etkinleştirmeniz gerekir.

Link to comment
Share on other sites

  • 5 ay sonra...

ftp de php dosyası olası gerekir yoksa çalışmayacaktır deneyen varmı bunu

php dosyası bu sekılde olacak zannedersem

-- Where is the mail form hosted?

-- Set this to the server where the script was uploaded

-- (and maybe change its name)

theURL = "

Please register to see this content.

-- Check if online

online = HTTP.TestConnection(theURL);

if (online) then

-- Disable button to avoid repeated submits

Button.SetEnabled("Button1", false);

-- Submit data to mail form

text = Input.GetText("Input1");

res = HTTP.Submit(theURL, { action="Submit", comment=text }, SUBMITWEB_POST);

if (res == "OK") then

Dialog.Message("Bilgi", "Mesajınız başarıyla gönderildi", MB_OK);

Application.Exit();

else

Dialog.Message("Hata Mesajı", "Mesaj gönderilemedi:\r\n" .. res, MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);

end

Button.SetEnabled("Button1", true);

else

-- Oops!

Dialog.Message("Hata Mesajı", "Mesajınız Gönderilemesi, İnternet Bağlantınızda sorun olabilir aha Sonra Yeniden Deneyiniz", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);

end

Link to comment
Share on other sites

ftp ye mail.php diye yukarda verdiğim kodları ekleyerek çalıştırıyorum ve mail adresime gerekli mailde geliyor fakat diğer şekilde yaptıgımda çalışmıyor ozaman bir hatamı yapıyoruz.birde bir önceki mesajda arkadasın dediği gibi hangi smtp yı kullanarak gönderiyor ki?

Link to comment
Share on other sites

ya kendi gmail kullanıcı adı ve şifreni kullanacaksın işte, neden bu kadar büyüdüki bu kadar basit bir konu anlamadım. Açık beyin ameliyatı yapılıyor sanki altı üstü bir mail gönderiyoruz ya neden yapamicaz?

Link to comment
Share on other sites

  • 10 ay sonra...

[quote name='MostWanted' date='04 September 2011 - 13:25 ' timestamp='1315131926' post='1073926']
Hotmail değil çünkü gmail ve gmail tabanlı yerlere mail atabilirsin.
[/quote]

[b]Gmail Sadece Gönderen Taraf İçin Önemli. Her Türlü Mail Adresine Gönderebiliyor. Benim Hotmail Tabanlı w.cn Mesele. Çok Rahat Mail Alıyorum.[/b]

Link to comment
Share on other sites

  • 1 ay sonra...

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...