SMTP Or PHP?

Discussion in 'Site & Server Administration' started by gobbly2100, Feb 22, 2008.

  1. #1
    Hey,

    I am fairly new to running a server and I just wondered what is better to use within your scripts and such, if a script has the option for SMTP and PHP to send mail which is better to use?

    What are the benefits of each?
     
    gobbly2100, Feb 22, 2008 IP
  2. gate2vn

    gate2vn Peon

    Messages:
    809
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    0
    #2
    I have better feeling with SMTP option. Sometimes, PHP mail will lead your emails to junk box, meanwhile SMTP is not.
     
    gate2vn, Feb 22, 2008 IP
  3. RectangleMan

    RectangleMan Notable Member

    Messages:
    2,825
    Likes Received:
    132
    Best Answers:
    0
    Trophy Points:
    210
    #3
    Better to use a trusted SMTP like Google's server. It will almost ensure that your email won't be spam filtered unless the content is bad.
     
    RectangleMan, Feb 22, 2008 IP
  4. kaung

    kaung Twitter @KaungKo

    Messages:
    4,040
    Likes Received:
    187
    Best Answers:
    0
    Trophy Points:
    155
    #4
    if you can configure and use SMTp but otherwise, PHP is fine as well and you dont need no info usually with it.
     
    kaung, Feb 23, 2008 IP
  5. gobbly2100

    gobbly2100 Banned

    Messages:
    906
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Oh cool thanks guys, just one question though, is there any security issue with using SMTP as you are using a username and password?
     
    gobbly2100, Feb 23, 2008 IP
  6. Stroh

    Stroh Notable Member

    Messages:
    3,482
    Likes Received:
    292
    Best Answers:
    0
    Trophy Points:
    200
    #6
    Nope there shouldn't be any security issues since nobody really sees your username / password but the script itself.
     
    Stroh, Feb 23, 2008 IP
  7. jagannath_4all

    jagannath_4all Peon

    Messages:
    395
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #7
    using php is the easiest option but SMTP will ensure better delivery of your mails.

    I use google apps for all my domains so use google's SMTP servers but it can be logged in only using SSL (TLS) so there should be SSL in your server. (and xpertmailer plugin (xpertmailer.com) is the best option if you are using wordpress blogs to send mail thru google apps).

    if you are really concerned with your mails ending in spam folder you need to configure SPF records in your DNS hosting.




    _
     
    jagannath_4all, Feb 24, 2008 IP
  8. cooldude7273

    cooldude7273 Active Member

    Messages:
    185
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #8
    SMTP is best really. Like others have said, less likely to me marked spam.
     
    cooldude7273, Feb 24, 2008 IP
  9. ccb056

    ccb056 Peon

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    SMTP is best, get a google apps account (free) and use their servers. You will need OpenSSL installed on your server in order to pass the username and password encrypted though.
     
    ccb056, Feb 25, 2008 IP