how to send mail from your domain

Discussion in 'PHP' started by poseidon, Apr 23, 2006.

  1. #1
    hi,

    I am trying to write a script "tell a friend" where people can forward the current url to some of there friend. Though I got some script from net but they are rewriting the header and than the mails are getting into yahoo bulk folder which I don't want(what's the use than)

    I want to send the mails from my domain itself . I hope I am clear what I want :)
     
    poseidon, Apr 23, 2006 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    For the "additional headers" parameter in the mail() function, you can just add something like:

    "From: You <youraddress@yourdomain.com>"
     
    digitalpoint, Apr 23, 2006 IP
  3. poseidon

    poseidon Banned

    Messages:
    4,356
    Likes Received:
    246
    Best Answers:
    0
    Trophy Points:
    0
    #3
    pal, thanks. By the way, is there any sure shot way of avoiding mails being send to bulk folder ?
     
    poseidon, Apr 24, 2006 IP
  4. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #4
    Just don't send them in bulk. :)
     
    digitalpoint, Apr 24, 2006 IP
  5. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Only if people whitelist you. Otherwise, your message could end up in a bulk folder. A lot of people treat everything as potential spam unless it is sent by someone on their whitelist.

    Some people never read the contents of the potential spam folder. They just delete everything every few days. Others scam the message headers to see if there is some legitimate email in there.
     
    clancey, Apr 24, 2006 IP
  6. legend2

    legend2 Well-Known Member

    Messages:
    1,537
    Likes Received:
    74
    Best Answers:
    0
    Trophy Points:
    115
    #6
    mime type is also part of the extra headers.
    try filling all possible extra headers and you might get straight into the inbox:)
    Also the body message shouldn't contain stuff liek 'check this site out'.

    Anyway, good luck:)
     
    legend2, Apr 24, 2006 IP
  7. Mjoseph83

    Mjoseph83 Peon

    Messages:
    135
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I have filled all the headers as you suggested but could not get into the inbox yet.... Whats the issue now?
     
    Mjoseph83, Mar 11, 2011 IP
  8. eleetgeek

    eleetgeek Peon

    Messages:
    129
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Try using PHP mailer. High possibility that your server is blacklisted. Make sure, you do not send more than 100 mails per hour/per domain.

    Hope that helps, mate :)
     
    eleetgeek, Mar 14, 2011 IP
  9. inrev

    inrev Peon

    Messages:
    60
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    check this mate
    http://forums.digitalpoint.com/showthread.php?t=2121359
     
    inrev, Mar 14, 2011 IP