Sending Mail with Attachments using Sockets

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

    #1

    Sending Mail with Attachments using Sockets

    Using Sockets (fsockopen, fputs, fgets, etc.) I'm able to interact
    with an SMTP server to send mail. However, do you know the steps
    necessary in order to send a file attachment as well?

    (Note, if you need GNU tools to help achieve this task, note that I
    have RH9 Linux.)
  • Manuel Lemos

    #2
    Re: Sending Mail with Attachments using Sockets

    Hello,

    On 08/06/2004 11:51 AM, Google Mike wrote:[color=blue]
    > Using Sockets (fsockopen, fputs, fgets, etc.) I'm able to interact
    > with an SMTP server to send mail. However, do you know the steps
    > necessary in order to send a file attachment as well?[/color]

    You may want to try this class for composing and sending messages that
    comes with support adding as many attachments as you want and may send
    the messages via the mail() function or SMTP using a specialized sub-class:

    http://www.phpclasses.org/mimemessage


    --

    Regards,
    Manuel Lemos

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

    PHP Reviews - Reviews of PHP books and other products
    http://www.phpclasses.org/reviews/

    Metastorage - Data object relational mapping layer generator

    Comment

    Working...