SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    Patience... bronze trophy solidcodes's Avatar
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    933
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Arrow Why this method don't send me email?

    hi guys

    do you spot the not?
    Code:
    	//email user
    	function emailUserPass() {
    		$user = $this->userName;
    		$pass = $this->passWord;
    	
    		$to = $this->email;
    		$subject = 'Your username and password from onstaged.com';
    		
    		$message = 'Hello this is from onstaged.com\n\n';
    		$message .= 'username: '. $user;
    		$message .= '\npassword: '. $pass;
    		$message .= '\n\n';
    		$message .= 'Thank you!';
    		
    		$headers = 'From: onstaged' . "\r\n" .
    				'Reply-To: support' . "\r\n" .
    				'X-Mailer: PHP/' . phpversion();
    
    		mail($to, $subject, $message, $headers);
    	
    	}
    I don't understand why this method in my class don't send email message to me?

    thank you in advance.

  2. #2
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Have you checked your junk box?

    what it output if you var_dump the return of the mail function, e.g:
    PHP Code:
    $result mail($to$subject$message$headers);
    var_dump($result); 
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  3. #3
    Patience... bronze trophy solidcodes's Avatar
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    933
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    yes and nothing in it.

    by the way here is the complete codes for the class.
    http://czone01.com/ztemp/paypalpayment.inc.php.txt

    and here is the php script that will call those methods.
    http://czone01.com/ztemp/createrecur...rofile.php.txt

    Thank you again in advance...

  4. #4
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Again, what does it give you when you use the code I posted above?
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  5. #5
    Patience... bronze trophy solidcodes's Avatar
    Join Date
    Jul 2006
    Location
    Philippines
    Posts
    933
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    arkinstall the var_dump output is below,

    bool(true)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •