• 05-09-2009, 01:00:22
    #10
    Kimlik doğrulama veya yönetimden onay bekliyor.
    shafack adlı üyeden alıntı: mesajı görüntüle
    sonunda yaptım

    yappılması gereken:
    $mail->Host = "mail.alanadı.net"; // SMTP server
    $mail->SMTPDebug = 2; // enables SMTP debug information (for testing)
    $mail->SMTPAuth = true; // enable SMTP authentication
    $mail->Host = "mail.alanadı.net"; // sets the SMTP server
    $mail->Port = 25; // set the SMTP port for the GMAIL server
    $mail->Username = "destek@alanadı.net"; // SMTP account username
    $mail->Password = "şifre"; // SMTP account password
    Sanırım bunun için bir kütüphane olması gerekiyor?
  • 02-02-2010, 21:19:13
    #11
    Üstadım yapmış olduğun mail fonksiyonunu ve icerdiği dosyaları paylaşabilirmisin....
  • 20-02-2010, 02:16:27
    #12
    <?php
    include("Mail.php");
    /* mail setup recipients, subject etc */
    $recipients = "feedback@yourdot.com";
    $headers["From"] = "user@somewhere.com";
    $headers["To"] = "feedback@yourdot.com";
    $headers["Subject"] = "User feedback";
    $mailmsg = "Hello, This is a test.";
    /* SMTP server name, port, user/passwd */
    $smtpinfo["host"] = "smtp.mycorp.com";
    $smtpinfo["port"] = "25";
    $smtpinfo["auth"] = true;
    $smtpinfo["username"] = "smtpusername";
    $smtpinfo["password"] = "smtpPassword";
    /* Create the mail object using the Mail::factory method */
    $mail_object =& Mail::factory("smtp", $smtpinfo);
    /* Ok send mail */
    $mail_object->send($recipients, $headers, $mailmsg);
    ?>
    Nette bende bunu buldum ama Mail.php için bazı istelerde kod buldum ama gönderemedim

    25 yerine 587 denedim :'(

    Arkadaşlar millete spam mail göndermiyecem okul projemde kullanıcam

    Buraya yayınladığım sitemde smtp ile google aaps hizmetinden aldığım hesabımı kullanmak istiyorum

    Konuyla ilgilendiğiniz için şimdiden çok teşekkürler...