Send email with attachment in PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kamlai@gmail.com

    Send email with attachment in PHP

    I'm using PHP 5 with apache in linux.

    I'm now have a $content which stores the content of the email in HTML
    format. I would like to send this $content as the attachment of the
    email. How to deal with this? I am new in PHP.
    Thanks for great help.
    Eric

  • Toby Inkster

    #2
    Re: Send email with attachment in PHP

    kamlai wrote:
    [color=blue]
    > I'm now have a $content which stores the content of the email in HTML
    > format. I would like to send this $content as the attachment of the
    > email. How to deal with this? I am new in PHP.[/color]

    Why not just put it in the body of the message?

    Google: MIME

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me ~ http://tobyinkster.co.uk/contact

    Comment

    • Chuck Anderson

      #3
      Re: Send email with attachment in PHP

      kamlai@gmail.co m wrote:
      [color=blue]
      >I'm using PHP 5 with apache in linux.
      >
      >I'm now have a $content which stores the content of the email in HTML
      >format. I would like to send this $content as the attachment of the
      >email. How to deal with this? I am new in PHP.
      >Thanks for great help.
      >Eric
      >[/color]
      I use Phpmailer. Check the tutorials for a quick start.



      --
      *************** **************
      Chuck Anderson • Boulder, CO

      Integrity is obvious.
      The lack of it is common.
      *************** **************

      Comment

      Working...