SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Email and PHP

  1. #1
    SitePoint Member
    Join Date
    May 2005
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Email and PHP

    Hi everyone,
    I have the problem with PHP and Email. I edited php.ini to send mail with attachment on local computer. But when i receive email, size of attachment file is zero.
    Please help me.
    (If possible, please send to buihuynhmai@yahoo.com)
    Thank you very much.

  2. #2
    SitePoint Addict Quaint's Avatar
    Join Date
    May 2004
    Location
    Netherlands
    Posts
    219
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I suggest you use the PHPMailer class. It will handle al your e-mail desires and has the ability to use an SMTP server (which will definitely not give you any problems when using attachments). When you use it, I suggest you set back your php.ini settings to default again, you won't be needing PHP's mail() function (if you use SMTP server..)

    Anyway, check it out yourself: http://phpmailer.sourceforge.net/

    Quaint Tech
    - Blog on web development and web technology.


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
  •