php mail

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pradeepjain
    Contributor
    • Jul 2007
    • 563

    php mail

    Hii guys,
    i am using sendmail for my server.I am trying to send mails from webmaster@abc.c om (abc.com replaced my my mail address) .but while sending ats sending as apache@abc.abc. com .bcos of this some mails are getting rejected.how to send it as webmaster only .Is there any configuration to be made or some changes to be made in php script .And i have used From :address also


    thanks,
    Pradeep
  • nathj
    Recognized Expert Contributor
    • May 2007
    • 937

    #2
    You may need to adjust the sendmail_from value in the ini file

    Code:
    ini_set('sendmail_from', 'you@domain.com') ;
    Just a thought, give it a try. I've never had to do this and it's worked fine, the other item I set is in the header - Reply-To. Try setting that to the relevant email address just after you set the From value.

    Cheers
    nathj

    Comment

    • pradeepjain
      Contributor
      • Jul 2007
      • 563

      #3
      hey i got it i had to use fifth option for mail function '-f webmaster@abc.c om'

      see this

      see this

      Comment

      • nathj
        Recognized Expert Contributor
        • May 2007
        • 937

        #4
        Originally posted by pradeepjain
        hey i got it i had to use fifth option for mail function '-f webmaster@abc.c om'

        see this

        see this
        That's great, I've learned something new with that one - I wasn't aware of that parameter.

        Everyone's a winner!
        nathj

        Comment

        • Markus
          Recognized Expert Expert
          • Jun 2007
          • 6092

          #5
          Me too. Thanks for that.

          Comment

          • pradeepjain
            Contributor
            • Jul 2007
            • 563

            #6
            its ok..i have learn t lots from you guys.

            Comment

            • Markus
              Recognized Expert Expert
              • Jun 2007
              • 6092

              #7
              Originally posted by pradeepjain
              its ok..i have learn t lots from you guys.
              And, evidently, we have lots to learn from you too.

              Comment

              • nathj
                Recognized Expert Contributor
                • May 2007
                • 937

                #8
                Originally posted by Markus
                And, evidently, we have lots to learn from you too.
                To quote one of my favourite adverts (but not a favourite beer):

                "True"

                Comment

                Working...