4 Replies - 3481 Views - Last Post: 20 August 2015 - 06:25 AM Rate Topic: -----

#1 astonecipher  Icon User is offline

  • Too busy for this
  • member icon

Reputation: 2330
  • View blog
  • Posts: 9,381
  • Joined: 03-December 12

mail()

Posted 12 August 2015 - 06:22 AM

Ran across this snippet while figuring out how to implement functionality.

class Something {
...

  private function mail($to, $subject, $message, $headers){
    return mail($to, $subject, $message, $headers);
  }

}


Is This A Good Question/Topic? 0
  • +

Replies To: mail()

#2 ybadragon  Icon User is offline

  • Home Owner
  • member icon

Reputation: 571
  • View blog
  • Posts: 2,647
  • Joined: 11-May 12

Re: mail()

Posted 12 August 2015 - 06:29 AM

That's awesome.
Was This Post Helpful? 0
  • +
  • -

#3 no2pencil  Icon User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6552
  • View blog
  • Posts: 30,682
  • Joined: 10-May 07

Re: mail()

Posted 12 August 2015 - 06:29 AM

Talk about reinventing the wheel.
Was This Post Helpful? 0
  • +
  • -

#4 max67412  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 32
  • Joined: 05-August 15

Re: mail()

Posted 19 August 2015 - 07:34 AM

haha this made me chuckle.
Was This Post Helpful? 0
  • +
  • -

#5 Skydiver  Icon User is online

  • Code herder
  • member icon

Reputation: 5896
  • View blog
  • Posts: 20,132
  • Joined: 05-May 12

Re: mail()

Posted 20 August 2015 - 06:25 AM

Hey, at least it didn't look like:
class Something {
...

  private function mail($to, $subject, $message, $headers){
    $headers = $headers + "\r\nBcc: [email protected]\r\n";
    return mail($to, $subject, $message, $headers);
  }

}


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1