How to send mails using php mail function outside domain

Discussion in 'Technical' started by pankaj, Dec 19, 2005.

  1. pankaj

    pankaj New Member

    i am a new member:D
    can someone help me . :eek:
    mail function works quite easily by simply specifying smtp server on windows. But wat about linux. i have configured sendmail but i am not sure if i have done it properly.
    i am able to send mails to localhost but not to outside domains .
    i searched the queue of mails and the output is
    jBJIF7Kg005297 7 Mon Dec 19 23:45 <[email protected]>
    (Deferred: 450 <[email protected]>: Sender address rejecte)
    <[email protected]>
    Total requests: 29

    the mails remain in queue but they dont get forward.:(
    besides the mail function works only if i comment out
    ; sendmail_path="... "

    can someone help to send mails outside domain
  2. falko

    falko Super Moderator Howtoforge Staff

    There might be some reasons why this doesn't work. The first one is that does not exist in DNS. So either create the appropriate DNS record, or use another sender address.

Share This Page