הרשם שאלות ותשובות רשימת חברים לוח שנה הודעות מהיום

חזור   הוסטס - פורום אחסון האתרים הגדול בישראל > עיצוב גראפי, תכנות על כל שפותיו וקידום ושיווק אתרים > פורום תיכנות

   
|!|

השב
 
כלים לאשכול תצורת הצגה
ישן 16-08-06, 17:06   # 1
amirs_5
הוסטסניון
 
amirs_5's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: ת"א
גיל: 34
הודעות: 2,168
שלח הודעה באמצעות ICO אל amirs_5 Send a message via Skype™ to amirs_5

amirs_5 לא מחובר  

בעיה בפונקצייה mail

אממ, רשמתי את הקוד הנ"ל:

PHP קוד:
$title "the title";
$msg "the msg";

mail("amirs_5@hotmail.com",$title,$msg);

echo 
"נשלח"
וזה לא שולח לי למייל כלום , ולא ראיתי בעיה מסויימת בקוד
__________________
אימיל \ מסן : amirs91 [at] gmail.com
  Reply With Quote
ישן 16-08-06, 17:11   # 2
Itay
חבר מתקדם
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 35
הודעות: 564

Itay לא מחובר  

הקוד בסדר, אז כנראה שהבעיה היא עם המייל.. נסה אחד אחר
  Reply With Quote
ישן 16-08-06, 17:14   # 3
RS324
תודה על תרומתך.
 
מיני פרופיל
תאריך הצטרפות: May 2006
הודעות: 3,173

RS324 לא מחובר  

לא הוספת HEADER תבדוק במייל שלך אם זה התקבל כדואר זבל
  Reply With Quote
ישן 16-08-06, 17:29   # 4
amirs_5
הוסטסניון
 
amirs_5's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: ת"א
גיל: 34
הודעות: 2,168
שלח הודעה באמצעות ICO אל amirs_5 Send a message via Skype™ to amirs_5

amirs_5 לא מחובר  

ציטוט:
הקוד בסדר, אז כנראה שהבעיה היא עם המייל.. נסה אחד אחר
ניסיתי אם 3 כתובות מייל.
@bezeqint.net
@walla.com
@hotmail.com
לאף אחד לא הגיע אימייל.

ציטוט:
לא הוספת HEADER תבדוק במייל שלך אם זה התקבל כדואר זבל
זה לא נמצא באף תיקייה במיילים , בדקתי את כל התיקיות.
ואיזה HEADER צריך להוסיף ?
__________________
אימיל \ מסן : amirs91 [at] gmail.com
  Reply With Quote
ישן 16-08-06, 17:30   # 5
DaNieLLL
חבר מתקדם
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 31
הודעות: 614

DaNieLLL לא מחובר  

אולי השרת לא תומך שליחת מיילים :S
__________________
  Reply With Quote
ישן 16-08-06, 17:31   # 6
amirs_5
הוסטסניון
 
amirs_5's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: ת"א
גיל: 34
הודעות: 2,168
שלח הודעה באמצעות ICO אל amirs_5 Send a message via Skype™ to amirs_5

amirs_5 לא מחובר  

ציטוט:
נכתב במקור על ידי DaNieLLL
אולי השרת לא תומך שליחת מיילים :S
אם השרת לא תומך בפונקציה מסויימת אז לפי מה שאני יודע היה אמור להיות רשום שהוא לא מוצא את הפונקציה או היא לא מורשת.
וזה לא רשום אצלי.
__________________
אימיל \ מסן : amirs91 [at] gmail.com
  Reply With Quote
ישן 16-08-06, 17:37   # 7
Tomer
Whatever
 
Tomer's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
הודעות: 7,039
שלח הודעה באמצעות MSN אל Tomer Send a message via Skype™ to Tomer

Tomer לא מחובר  

בדוק ש sendmail מותקן ופועל כראוי (שאל את בעל השרת)
__________________
תומר
  Reply With Quote
ישן 16-08-06, 17:38   # 8
amirs_5
הוסטסניון
 
amirs_5's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: ת"א
גיל: 34
הודעות: 2,168
שלח הודעה באמצעות ICO אל amirs_5 Send a message via Skype™ to amirs_5

amirs_5 לא מחובר  

אוקיי , ובקשר לתגובה עם ה HEADER ,
איזה HEADER צריך להוסיף ?
__________________
אימיל \ מסן : amirs91 [at] gmail.com
  Reply With Quote
ישן 16-08-06, 18:01   # 9
RS324
תודה על תרומתך.
 
מיני פרופיל
תאריך הצטרפות: May 2006
הודעות: 3,173

RS324 לא מחובר  

תנסה להשתמש בפונקציה הזאת

PHP קוד:
function send_mail($fromname,$fromemail,$to,$subject,$body,$type)
{
    
    
$servertype strtoupper(substr(PHP_OS,0,3));
    
$eol'';
    switch (
$servertype)
    {
        case 
'WIN':
            
$eol="\r\n";
        break;
        case 
'MAC':
            
$eol="\r";
        break;
        default:
            
$eol="\n";
            
    }
    
/*
    # File for Attachment
$f_name="../../letters/".$letter;    // use relative path OR ELSE big headaches. $letter is my file for attaching.
$handle=fopen($f_name, 'rb');
$f_contents=fread($handle, filesize($f_name));
$f_contents=chunk_split(base64_encode($f_contents));    //Encode The Data For Transition using base64_encode();
$f_type=filetype($f_name);
fclose($handle);
*/

 
 

# Common Headers
$headers .= "From: $fromname <$fromemail>$eol";
$headers .= "Reply-To: $fromname <$fromemail>$eol";
$headers .= "Return-Path: $fromname <$fromemail>$eol";    // these two to set reply address
$headers .= "Message-ID: <".time()." TheSystem@".$_SERVER['SERVER_NAME'].">".$eol;
$headers .= "X-Mailer: PHP v".phpversion().$eol;          // These two to help avoid spam-filters
# Boundry for marking the split & Multitype Headers
$mime_boundary=md5(time());
$headers .= "MIME-Version: 1.0$eol";
$headers .= "Content-Type: multipart/related; boundary=\"".$mime_boundary."\"".$eol;
$msg "";

/*# Attachment
$msg .= "--".$mime_boundary.$eol;
$msg .= "Content-Type: application/pdf; name=\"".$letter."\"".$eol;  // sometimes i have to send MS Word, use 'msword' instead of 'pdf'
$msg .= "Content-Transfer-Encoding: base64".$eol;
$msg .= "Content-Disposition: attachment; filename=\"".$letter."\"".$eol.$eol; // !! This line needs TWO end of lines !! IMPORTANT !!
$msg .= $f_contents.$eol.$eol;
# Setup for text OR html
$msg .= "Content-Type: multipart/alternative".$eol;
*/

# Text Version
$msg .= "--".$mime_boundary.$eol;
$msg .= "Content-Type: text/plain; charset=iso-8859-1".$eol;
$msg .= "Content-Transfer-Encoding: 8bit".$eol;
$msg .= "This is a multi-part message in MIME format.".$eol;
$msg .= "If you are reading this, please update your email-reading-software.".$eol;
$msg .= "+ + Text Only Email from Genius Jon + +".$eol.$eol;

$body "<P>mybody</P>width HR <HR>";

# HTML Version
$msg .= "--".$mime_boundary.$eol;
$msg .= "Content-Type: text/html; charset=iso-8859-1".$eol;
$msg .= "Content-Transfer-Encoding: 8bit".$eol;
$msg .= $body.$eol.$eol;

# Finished
$msg .= "--".$mime_boundary."--".$eol.$eol;  // finish with two eol's for better security. see Injection.

# SEND THE EMAIL
ini_set(sendmail_from,$fromemail);  // the INI lines are to force the From Address to be used !
  
mail($to$subject$msg$headers);
ini_restore(sendmail_from); 
 
    
    

אם לא עובד לך אז כנראה הבעיה בשרת
אני משתמש בפונקציה הזאת בתוך אחת המערכות שלי
  Reply With Quote
ישן 16-08-06, 18:07   # 10
amirs_5
הוסטסניון
 
amirs_5's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: ת"א
גיל: 34
הודעות: 2,168
שלח הודעה באמצעות ICO אל amirs_5 Send a message via Skype™ to amirs_5

amirs_5 לא מחובר  

אממ .. מה זה $type ?!
__________________
אימיל \ מסן : amirs91 [at] gmail.com
  Reply With Quote
השב

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 


חוקי פירסום
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


כל הזמנים הם GMT +2. הזמן כעת הוא 03:21.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ