SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict Mo Money's Avatar
    Join Date
    Nov 2002
    Posts
    274
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question SMTP? or normal mail?

    I normally just use the mail function the normal way, but how do you send an email using SMTP, or IMAP and what are the advantages? I see that phpBB uses the SMTP way. I have noticed sometimes when I send an email the normal way it will end up in my junk box, is there any way I can send an email from my server, actually from one of my email accounts on my server, so that it doesnt fail.
    AbcArcade.com - free internet games!

  2. #2
    pie??? PIE!!!! rsdl's Avatar
    Join Date
    May 2001
    Location
    Vancouver, BC Canada
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the mail function uses SMTP by default (see php.ini).
    In order to use IMAP, you'd need to a) run an IMAP server or a mail server with IMAP capabilities, and b) you need to use the IMAP functions. (see php.net)
    What email client are you using? outlook? webmail? If it's outlook then either you or someone else has set the mail client to automatically put any email from your domain to the junk box.

  3. #3
    SitePoint Addict richard_h's Avatar
    Join Date
    May 2002
    Location
    London
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Using sockets and connecting directly to the SMTP server is quicker than using PHP's mail() function. phpMailer is a class that makes this stuff easier - http://phpmailer.sourceforge.net/


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
  •