shafack adlı üyeden alıntı:
mesajı görüntüle
PHP ile mail gönderme
11
●1.331
- 20-02-2010, 02:16:27
<?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...
