sitemin kurulu oldu sunucuda php nuke kuurulu ve , nuke herhangi bir ayar yapmadan kullanıcılara mail gönderebiliyor , aktivasyon kodunu gönderebiliyor.
nukten bağımsız olarak php kod ile mail göndermek istiyorum , kullandığım kodlar şunlar :
// Message header such as "confirm" or "error" $headersize="4"; $headercolor="Lime"; // Message body $textsize="3"; $textcolor="0000ff"; $linkcolor="ffcc99";
/*****************************************************/ /* YOU DO NOT NEED TO MODIFY ANYTHING BELOW */ /***************************************************/
if( !empty($HTTP_POST_VARS)) { // if any form submission start the process function prompt_user($messageheader,$promptmessage) { global $l,$goback,$fm_error,$plsfill,$invalidaddress,$fm_confirm,$sent,$unsent,$author; global $headersize,$headercolor,$textsize,$textcolor,$linkcolor; include("inc/Header.php"); echo "
// function to check the empty fields function check_fields($fieldname,$fieldtype) { global $fm_error,$plsfill; if (empty($fieldname)) { prompt_user("$fm_error","$plsfill <br> * $fieldtype"); } }
// function to check the email validity function check_email($mailtocheck) { global $fm_error,$plsfill,$invalidaddress; $mail_test= trim($mailtocheck); if (!eregi("^[_\\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\\.)+[a-z]{2,3}$", $mail_test)) { prompt_user("$fm_error","$invalidaddress :<br> $mail_test"); } }
// check if there are required fields if ($req) { $requiredfields=explode(",",$req); for ($temp=0;$temp<count($requiredfields);$temp++) { $requiredfields[$temp]=trim ($requiredfields[$temp]); if ($requiredfields[$temp]=="email") { check_email("${$requiredfields[$temp]}"); } else { check_fields ("${$requiredfields[$temp]}","$requiredfields[$temp]"); } } }
/* default values for script will take place in the hidden form fields */ $def[]="subject"; $def[]="req"; $def[]="recipient";
// get the IP and the date $ip=getenv("REMOTE_ADDR"); $date=date("d-m-Y H:i:s");
slm arkadaslar ben bunu cok aradim burda bulabildim cok tsk ederim ellerinize saglik ama benim bir sorunum var göndere basiyorum ditti diyor ama bazen geliyor bazen gelmiyor neden bana yardim olursaniz cok sevinirim
sitemin kurulu oldu sunucuda php nuke kuurulu ve , nuke herhangi bir ayar yapmadan kullanıcılara mail gönderebiliyor , aktivasyon kodunu gönderebiliyor.
nukten bağımsız olarak php kod ile mail göndermek istiyorum , kullandığım kodlar şunlar :
---------------------------------------------------
bu sayfaya veri gönderen sayfanın yapısı :
bu kodlarla gönderdiğim mailler ulaşmıyor , işin garibi herhangi bir hata vermiyor. başarıyla gönderildi diyor.
ne önerirsiniz?