PHP default email and spam email

Discussion in 'PHP' started by mdrobiul, Sep 14, 2009.

  1. #1
    some of my email from our site are going to spam folder as we are using mail() functions. we understand that it can solved using our own email server but i need quick solution in our site and i found following code from php manual. my question is that will it work for any webhosting company and is it enough for non-spam email detection?

    ini_set(sendmail_from, "info@mywebsite.net");
     
    mdrobiul, Sep 14, 2009 IP
  2. ceban

    ceban Peon

    Messages:
    21
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'll answer your second question:
    "is it enough for non-spam email detection?"
    No, it's not enough. Spam filters also look at sent headers, content of the email, etc.
     
    ceban, Sep 14, 2009 IP
  3. mdrobiul

    mdrobiul Peon

    Messages:
    186
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks. may be we should check our headers and check others all possible causes as well. but does it (ini_set(sendmail_from, "info@mywebsite.net");) really help for sometimes or for some email servers?
     
    mdrobiul, Sep 15, 2009 IP