Multiple attachment problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anon

    #1

    Multiple attachment problem

    I have a form that's giving visitors the option of either writing text
    or an attachment, in two places.

    My script is taking this and sending it by email, with attachments if
    there are uploads from the form.

    I've modified the generic scripts available through Google, but I'm
    running into a problem. If I don't have a file to attach as #1, even if
    there is a file to attach as #2, it ignores #2 and sends the email
    without attachments.

    Any ideas?
  • Manuel Lemos

    #2
    Re: Multiple attachment problem

    Hello,

    On 07/19/2003 12:47 AM, Anon wrote:[color=blue]
    > I have a form that's giving visitors the option of either writing text
    > or an attachment, in two places.
    >
    > My script is taking this and sending it by email, with attachments if
    > there are uploads from the form.
    >
    > I've modified the generic scripts available through Google, but I'm
    > running into a problem. If I don't have a file to attach as #1, even if
    > there is a file to attach as #2, it ignores #2 and sends the email
    > without attachments.
    >
    > Any ideas?[/color]

    Try this class that lets you compose message with as many attachments as
    you want, passing the attachment data either from an existing file or a
    text string.

    http://www.phpclasses.org/mimemessage

    --

    Regards,
    Manuel Lemos

    Free ready to use OOP components written in PHP
    http://www.phpclasses.org/

    Comment

    Working...