PHP Mail

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Viowatch
    So Fucking Banned
    • Mar 2006
    • 257

    #1

    PHP Mail

    hey,

    Does anyone know the code for php that sends email...sort of like a formmail?

    I tried some codes but they don't work, it just errors
  • octane
    Confirmed User
    • Mar 2006
    • 32

    #2
    there's two functions you could use:

    bool mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]] )

    bool imap_mail ( string to, string subject, string message [, string additional_headers [, string cc [, string bcc [, string rpath]]]] )

    just remember you gotta setup the smtp settings in php.ini

    Comment

    • nakki
      Confirmed User
      • May 2001
      • 137

      #3
      If you need to send out lots of messages, you should check out the PEAR Mail_Queue class..
      - adult blog aggregator - sign up here
      NastyLittle.com - trade with an established adult blog

      Comment

      • fetishblog
        Confirmed User
        • Sep 2005
        • 5995

        #4
        Are you wanting a contact form on your site or something?

        Fling.com doesn't steal your traffic and sales unlike some other dating companies. I promote them, and so should you!

        Comment

        • duckduckgoose
          Registered User
          • Mar 2006
          • 82

          #5
          You can create quick and dirty PHP scripts to send you mail from a form, using the PHP Formmail Generator (search google for that). Of course, this assumes mail is configured correctly as outlined above by others.
          rRhino.com ...social networking for book fans...

          Comment

          Working...