SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    attachment with php email and mailing list?

    Can you attach an attachment when sending out an email using php?

    Looking at Kev's tutorial he mentions using to, from, subject, message body - but doesn't say if you can use an attachment.

    I have a list of email address which I want to send a newsletter too (as yet this is not done with php or mysql) not sure whether its going to be HTML email or pdf file attached.

    Can the pdf part be done?

    thank you

    Sarah

    edit: on closer inspection it would seem that if I want to attach a file I need to write my own email function from scratch....
    Last edited by Sarah; Oct 17, 2001 at 05:18.
    Regular user

  2. #2
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are classes that exist to do this. The subject has come up a number of times in this forum so try searching and you should find some good examples

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  3. #3
    SitePoint Wizard johnn's Avatar
    Join Date
    Mar 2001
    Location
    Southern California, USA
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello,
    There are 5 parts articles about mime e-mail at zend.com. They're complicated but you will know everything that you need to know about html email, and more.
    http://www.zend.com/zend/spotlight/

  4. #4
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    thanks johnn & seanf, I will go through the tutorial and see how I get on....
    Regular user

  5. #5
    SitePoint Wizard johnn's Avatar
    Join Date
    Mar 2001
    Location
    Southern California, USA
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're welcome.
    There's another tutorial at
    http://www.phpbuilder.com/columns/kartic20000807.php3

  6. #6
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Johnn - cheers one question have you used either of the articles? I am struggling a bit with the first one but that one seems to be the best and most comprehensive. The second article I can get to work - but it only allows mails of 4kb in size.?

    I have asked the question with the guy that wrote it to see why just thought that if you had used it....

    Anyway you have set me on the right road so thank you again for that

    Sarah
    Regular user

  7. #7
    SitePoint Wizard johnn's Avatar
    Join Date
    Mar 2001
    Location
    Southern California, USA
    Posts
    1,181
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Sarah,
    Not yet, I'm still working on it when I have time. Anyone who knows how to make it send mail more than 4kb in size, please post.
    Thanks


Bookmarks

Posting Permissions

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