WHM 2086 » Makaleler

SMTP Login olma ve Gerçek Email (PHP)

Geri git   WHM cPanel Destek Platformu » WHM cPanel » WHM 2086 » Makaleler
Kayıt ol Yardım Üye Listesi Ajanda Forumları Okundu Kabul Et
 
Cevapla
 
LinkBack Seçenekler Stil
  #1 (permalink)  
Alt 15.11.07, 10:56 PM
WHMSonic - ait Kullanıcı Resmi (Avatar)
WHM Developer
 
Üyelik tarihi: Nov 2007
Mesajlar: 76
Tecrübe Puanı: 31
WHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond repute
Thumbs up SMTP Login olma ve Gerçek Email (PHP)

Merhaba,
Bu konu bir çok yerde aranan ve sorulan bir durumdur, bildiğiniz üzere php ile sitelerinizin üzerinden gönderdiğiniz emailler nobody olarak gider ve bir çok email firmasına veya servera ulaşmaz. Bu yazımda size php ile SMTP girişi yaparak nasıl gerçek email gönderebileceğinizi göstereceğim ve emailleriniz outlooktan gönderir gibi gidecektir.

Öncelikle bu konu sadece WHM/Cpanel serverları için geçerlidir; alt kısımdaki işlemleri takip edin.

Serverınıza root SSH girişi yapınız ve alt kısımdaki komutu komut satırınıza kopyalayıp çalıştırınız.

Kod:
pear install Mail;pear install Net_SMTP;pear install Auth_SASL;
Yukardaki işlemi tamamladığınızda, serverınıza pear Mail eklentisi ilave edilmiş olacaktır. Bu sayede alt kısımdaki php scriptini kullanarak herhangi bir websiteniz üzerinden gerçek emailler gönderebilir kendinize göre form scriptleri hazırlayabilirsiniz böylece emailleriniz nobody olarak gitmeyecek ve spama düşmeyecektir.

PHP- Kodu:
<?php
require_once "Mail.php";
$from "Benim_Adim <isim@emailadresim.com>";
$to "Gidecek_Kisi <isim@gidecekemail.com>";
$subject "Hi!";
$body "Hi,\n\nHow are you?";
$host "mail.mailserveriniz.com";
$username "isim@emailadresim.com";
$password "email_Sifrem";
$headers = array ('From' => $from,
  
'To' => $to,
  
'Subject' => $subject);
$smtp Mail::factory('smtp',
  array (
'host' => $host,
    
'auth' => true,
    
'username' => $username,
    
'password' => $password));
$mail $smtp->send($to$headers$body);
if (
PEAR::isError($mail)) {
  echo(
"<p>" $mail->getMessage() . "</p>");
 } else {
  echo(
"<p>Mail Basari ile gonderildi!</p>");
 }
?>
__________________
Regards,
We Develop The Future
The Revolution Of WHM/cPanel Plugins ( Automatic ShoutCast & IRC )
www.whmsonic.com

Konu WHMSonic tarafından (15.11.07 Saat 11:01 PM ) değiştirilmiştir..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #2 (permalink)  
Alt 15.11.07, 11:06 PM
Tickhi - ait Kullanıcı Resmi (Avatar)
MyBB Turkiye
 
Üyelik tarihi: Jul 2007
Nerden: Bulgaria
Mesajlar: 332
Tecrübe Puanı: 5
Tickhi is just really niceTickhi is just really niceTickhi is just really niceTickhi is just really niceTickhi is just really nice
Tickhi - MSN üzeri Mesaj gönder Tickhi - YAHOO üzeri Mesaj gönder Tickhi isimli Üyeye Skype üzeri Mesaj gönder
hoş toplu olarak gönderebileceğimiz bir php script varmı peki
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #3 (permalink)  
Alt 15.11.07, 11:13 PM
WHMSonic - ait Kullanıcı Resmi (Avatar)
WHM Developer
 
Üyelik tarihi: Nov 2007
Mesajlar: 76
Tecrübe Puanı: 31
WHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond repute
Piyasada buna uygun toplu email gönderebileceğiniz bir script yok sanıyorum araştırmadım ama basit bir şekilde mysql yolu ile kendinizde yazabilirsiniz, fakat önermiyorum nedeni ise yukardaki yol ile email gönderdiğinizde gönderen email IP kısmında serverınızın ana IP'si yer almaktadır dolayısı ile toplu gönderimlerde herhangi bir black liste düşmeniz durumunda server IP direk olarak black liste girer ve problemler yaratacaktır.

Tavsiyem iş siteleriniz için, otomatik email gönderimleriniz için, veya üyelik scriptlerinizde email doğrulama vs için kullanmanız.

Dilerseniz ufak bir script yazabilirim toplu gönderim için, fakat ilerde serverınızın ana ipsi için oluşabilecek black list kayıtlarından beni sorumlu tutmayın Eğer bir kaç istek daha varsa bu konuda bir kaç gün içinde ufak bir script yazar burdan yayınlarım.
__________________
Regards,
We Develop The Future
The Revolution Of WHM/cPanel Plugins ( Automatic ShoutCast & IRC )
www.whmsonic.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #4 (permalink)  
Alt 16.11.07, 01:15 AM
dexigner - ait Kullanıcı Resmi (Avatar)
Media Servers Projector
 
Üyelik tarihi: Oct 2007
Nerden: Ankara - Istanbul
Mesajlar: 502
Tecrübe Puanı: 11
dexigner has much to be proud ofdexigner has much to be proud ofdexigner has much to be proud ofdexigner has much to be proud ofdexigner has much to be proud ofdexigner has much to be proud ofdexigner has much to be proud ofdexigner has much to be proud of
dexigner - MSN üzeri Mesaj gönder
Spam'a düşmemenin bi yolu var;
Accurate Mass Mailing System
__________________
Zıbındırık sitelere kopi pest yapıp çalıp çırpmayın hoster arkadaşlar!
Özel Mesaj ve MSN, Yahoo, Gtalk vs. Yoluyla Yardım Edilmez !!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #5 (permalink)  
Alt 21.11.07, 02:33 PM
misc - ait Kullanıcı Resmi (Avatar)
WHM VIP Member
 
Üyelik tarihi: Nov 2007
Nerden: Denizli
Mesajlar: 227
Tecrübe Puanı: 21
misc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond repute
misc - MSN üzeri Mesaj gönder
authentication failure [SMTP: Invalid response code received from server (code: 535, response: Incorrect authentication data)]

bu hatayı vermesinin sebebi ne olabilir?

birde çoklu e-posta için isteklerden biride benim. Teşekkürler
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #6 (permalink)  
Alt 23.11.07, 06:06 PM
WHMSonic - ait Kullanıcı Resmi (Avatar)
WHM Developer
 
Üyelik tarihi: Nov 2007
Mesajlar: 76
Tecrübe Puanı: 31
WHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond repute
authentication failure hatası girmiş olduğunuz eposta adresinin şifresinin veya kullanıcı adının yanlış olmasından oluşabilmektedir veya exim arızalı ise 535 hatası verebilir kullanıcı adınızı ve şifrenizi tekrar kontrol edin birde outlook ile email göndermeyi deneyin exim sağlammı ona bakalım.

Birde script ile email göndermeyi denemeden önce şu işlemi yapın;
Servera root ssh girişi yapın ve bu komutu girin: tail -f /var/log/exim_mainlog
Şimdi yukardaki script ile email göndermeyi deneyin hata verdiğinde ssh ekranına dönün bakalım ne gibi bir hata göreceksiniz görmez iseniz bir süre bekleyin mutlaka gelecektir o hatayı buraya yazın.
__________________
Regards,
We Develop The Future
The Revolution Of WHM/cPanel Plugins ( Automatic ShoutCast & IRC )
www.whmsonic.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #7 (permalink)  
Alt 23.11.07, 06:09 PM
misc - ait Kullanıcı Resmi (Avatar)
WHM VIP Member
 
Üyelik tarihi: Nov 2007
Nerden: Denizli
Mesajlar: 227
Tecrübe Puanı: 21
misc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond repute
misc - MSN üzeri Mesaj gönder
benim zaten hotmaile mail gönderememe gibi bir problemimde var bunla ilişkili olabilir mi?
teşekkürler.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #8 (permalink)  
Alt 25.11.07, 09:23 AM
WHMSonic - ait Kullanıcı Resmi (Avatar)
WHM Developer
 
Üyelik tarihi: Nov 2007
Mesajlar: 76
Tecrübe Puanı: 31
WHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond reputeWHMSonic has a reputation beyond repute
Alıntı:
misc´isimli üyeden Alıntı Mesajı göster
benim zaten hotmaile mail gönderememe gibi bir problemimde var bunla ilişkili olabilir mi?
teşekkürler.
Merhaba,
Tamamen email gönderemiyorsanız yani spam olarak dahi gitmiyorsa bu ayrı bir durumdur, siteniz üzerindeki herhangi bir scriptten gönderemediğinizi varsayaraktan anlatıyorum; hotmail,gmail,yahoo gibi servislere emailleriniz hiç ulaşmıyorsa muhtemelen blacklist probleminiz bulunuyordur.

Bunu anlamanın en güzel yolu email göndermeden önce eğer server sahibi iseniz serverınıza root ssh girişi yapınız ve bu komutu giriniz: tail -f /var/log/exim_mainlog ardından hotmaile emailinizi gönderiniz gönderir göndermez ssh ekranına dönün ve izlemeye başlayın sizin gönderdiğiniz emailin kaydı geçicek ekrandan bunu kopyalayın ve buraya yapıştırın böylece daha fazla yardımcı olabilirim.

Server sahibi değilseniz; serverınızın ana ip'sinin veya sizin turktelekomdan sabit ip'niz varsa black liste girip girmediğini anlamak için bu siteyi kullanınız: Email Blacklist Check - See if your server is blacklisted

Server IP kısmına önce ana server IP'nizi giriniz eğer herhangi bir blacklisti kaydı bulunuyorsa hotmail,gmail,yahoo gibi ve daha bir çok email sunucusuna emailleriniz ulaşmaz. telekomdan ip'niz sabit ise yine yukardaki adrese girip server ip kısmına kendi ip nizi yazıp tarayınız kaydınız varsa yine aynı durum söz konusu.

Black listelerinde yer alıyorsanız çözümü yoktur, sadece ip' değiştrilerek çözülebilir.

Probleminiz SPF kaydı ilede ilgili olabilir burda bir başlık mevcut: Hotmaile mail gönderme problemi

Yukardaki yollar ile probleminize çözüm bulabilirsiniz, bunların haricinde hotmail ve diğer büyük email sunucuları kendileride banlama yapıyor alan adınıza örneğin ban atabiliyor buda şöyle 24 saat içinde 500 den fazla emaili hotmaile gönderirseniz alan adınızı banlarlar. Bu gmail,yahoo içinde geçerlidir.
__________________
Regards,
We Develop The Future
The Revolution Of WHM/cPanel Plugins ( Automatic ShoutCast & IRC )
www.whmsonic.com

Konu WHMSonic tarafından (25.11.07 Saat 09:43 AM ) değiştirilmiştir..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #9 (permalink)  
Alt 25.11.07, 10:15 AM
misc - ait Kullanıcı Resmi (Avatar)
WHM VIP Member
 
Üyelik tarihi: Nov 2007
Nerden: Denizli
Mesajlar: 227
Tecrübe Puanı: 21
misc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond reputemisc has a reputation beyond repute
misc - MSN üzeri Mesaj gönder
We notice you are on a blacklist. Click here ..
Checking .. against 121 known blacklists...
Listed: 2 time(s)
Timeouts:4

MxToolbox - Managed IT Services for Small Business bu site ücretle mi destek veriyor?

teşekkürler.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
  #10 (permalink)  
Alt 14.12.07, 12:33 PM
canohosting - ait Kullanıcı Resmi (Avatar)
Celeron
 
Üyelik tarihi: Dec 2007
Mesajlar: 67
Tecrübe Puanı: 1
canohosting is on a distinguished road
canohosting - MSN üzeri Mesaj gönder
teşekkürler
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Alıntı ile Cevapla
Cevapla



Seçenekler
Stil

Yetkileriniz
Yeni Mesaj yazma yetkiniz aktif değil dir.
Mesajlara Cevap verme yetkiniz aktif değil dir.
Eklenti ekleme yetkiniz aktif değil dir.
Kendi Mesajınızı değiştirme yetkiniz aktif değil dir.

Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık




Saat Dilimimiz:GMT +2.Saatimiz:05:28 AM.