Help needed regarding mail

Discussion in 'PHP' started by riya_senk, Jan 28, 2007.

  1. #1
    I am confused in little matter.

    When ever I send mail to my subscriber, It mostly went to spam or bulk box. I am using mail() funtion. And Now I want to use via SMTP, So can any one suggest/write code for me to send mail using SMTP.

    Thanks in Advance.

    Riya
     
    riya_senk, Jan 28, 2007 IP
  2. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It does not matter whether you use PHP's builtin mail() function or some other method to send email. Your messages and/or tour domain are triggering rules in spam filters.

    For instance, email messages about "home equity loans" are probably blocked by 99.99% of the spam rule sets used by ISPs.

    There are two ways around these problems.

    1 - ask members to put your sending email on their whitelist and make sure they understand that you will be contacting them on a regular basis
    2 - limit emails to subscribers to information they need to know about the website and important updates . . . keep the marketing messages on the website and out of the emails
     
    clancey, Jan 28, 2007 IP
  3. tanfwc

    tanfwc Peon

    Messages:
    579
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you are looking for SMTP to send your email, look at http://www.swiftmailer.org/

    Make sure that you have subject, from and proper header pass to mail() before sending out.
     
    tanfwc, Jan 28, 2007 IP
  4. riya_senk

    riya_senk Well-Known Member

    Messages:
    2,014
    Likes Received:
    174
    Best Answers:
    0
    Trophy Points:
    160
    #4
    Well, I am sending mails to my wallpaper subscribers and members are not more than 100 at now.
     
    riya_senk, Jan 28, 2007 IP
  5. picouli

    picouli Peon

    Messages:
    760
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can use mail() with the '-f' sendmail parameter, like this
    mail('nobody@example.com', 'the subject', 'the message', null, '-fsender@domain.com');
    PHP:
    http://php.net/manual/en/function.mail.php
    This should help you get around stupid spam killers.
     
    picouli, Jan 28, 2007 IP
  6. lfhost

    lfhost Peon

    Messages:
    232
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
  7. riya_senk

    riya_senk Well-Known Member

    Messages:
    2,014
    Likes Received:
    174
    Best Answers:
    0
    Trophy Points:
    160
    #7
    Thanks you very very much guys :D
     
    riya_senk, Jan 29, 2007 IP