send with mail() php generated page

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default send with mail() php generated page

    I know how to send an email with attachment using mail() but i cannot
    discover how to send the result of a php generation in attachment by mail.
    I would like to send an html attachment and/or directly an html mail. This
    attachment/html mail must be the output of a .php file.
    I discovered that maybe i must use something eval() or output_buffer... but
    i don't know in which way i should operate...

    thank you
    morgan Guest

  2. Similar Questions and Discussions

    1. Making a page values of list and send mail
      Hello Dreamweaver, I need to make quite a simple web page. It has a list of 10 items with radio buttons. The user selects some of the items by...
    2. the script hangs up when i try to send mail with attachments using MAIL::Sender...???
      As said in the topic... when i try to send an e-mail message using Mail::Sender the script hangs up before execution of $sender ->...
    3. Can't send/receive Mail (Apple Mail)
      Somehow, I can't send or receive any E-mails... I'm using apple mail and tried with entourage, too... I also checked user name, password..etc...
    4. Send e-mail from asp page
      Hi, we just migrated our web server to a new server. And we are having a problem with order e-mails the server will stop at a line in the...
    5. Send Same E-mail To Multiple E-mail Addresses?
      "Ralph Swanson" <r.swanson@sbcglobal.net> wrote: You need one. First add all the Addresses to your Address Book, then go File > New Group and...
  3. #2

    Default Re: send with mail() php generated page

    morgan spilled the following:
    > I know how to send an email with attachment using mail() but i cannot
    > discover how to send the result of a php generation in attachment by mail.
    > I would like to send an html attachment and/or directly an html mail. This
    > attachment/html mail must be the output of a .php file.
    > I discovered that maybe i must use something eval() or output_buffer...
    > but i don't know in which way i should operate...
    >
    > thank you

    Isn't it simpler to just....

    $output=implode("\n", file('http://localhost/page_to_send.php'));
    mail($address, 'here\'s the html!', $output);

    C.
    Colin McKinnon Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139