how to avoid 'nobody'

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Peter Afonin

    how to avoid 'nobody'

    Hello,

    I installed osCommerce on Apache server. By default it sends out e-mails
    from the account 'nobody'. However, this option is turned off by the hosting
    provider. Is there a way to make it send mail from a real account? Is there
    a scripting solution for it (some PHP script)?

    I would appreciate your advice.

    Thank you,

    --
    Peter Afonin


  • Geoff Muldoon

    #2
    Re: how to avoid 'nobody'

    peter@gudzon.ne t says...[color=blue]
    > I installed osCommerce on Apache server. By default it sends out e-mails
    > from the account 'nobody'. However, this option is turned off by the hosting
    > provider. Is there a way to make it send mail from a real account? Is there
    > a scripting solution for it (some PHP script)?[/color]

    To send an email from PHP where the sender appears as
    notnobody@somew here.com:

    $param="-fnotnobody@some where.com";
    mail($to, $subject, $message, $header, $param);

    Geoff M

    Comment

    • Peter Afonin

      #3
      Re: how to avoid 'nobody'

      Thank you, Geoff, I'll try this.

      Peter

      "Geoff Muldoon" <gmuldoon@nospa m.scu.edu.au> wrote in message
      news:MPG.1cac98 f47eac7e9098968 3@news.x-privat.org...[color=blue]
      > peter@gudzon.ne t says...[color=green]
      > > I installed osCommerce on Apache server. By default it sends out e-mails
      > > from the account 'nobody'. However, this option is turned off by the[/color][/color]
      hosting[color=blue][color=green]
      > > provider. Is there a way to make it send mail from a real account? Is[/color][/color]
      there[color=blue][color=green]
      > > a scripting solution for it (some PHP script)?[/color]
      >
      > To send an email from PHP where the sender appears as
      > notnobody@somew here.com:
      >
      > $param="-fnotnobody@some where.com";
      > mail($to, $subject, $message, $header, $param);
      >
      > Geoff M[/color]


      Comment

      • Good Man

        #4
        Re: how to avoid 'nobody'

        "Peter Afonin" <peter@gudzon.n et> wrote in
        news:1143qkf85b 0ub26@corp.supe rnews.com:
        [color=blue]
        > Hello,
        >
        > I installed osCommerce on Apache server. By default it sends out
        > e-mails from the account 'nobody'. However, this option is turned off
        > by the hosting provider. Is there a way to make it send mail from a
        > real account? Is there a scripting solution for it (some PHP script)?[/color]

        I use Manual Lemos' MIME e-mail message class to send emails; just download
        the classes and try a test, its VERY simple to use. You can send mail via
        SMTP authentication using any server you want, and the emails do a great
        job of actually getting through to recipients without being flagged as
        junk.


        Comment

        • jorj

          #5
          Re: how to avoid 'nobody'

          Geoff Muldoon wrote:
          [color=blue]
          >peter@gudzon.n et says...
          >
          >[color=green]
          >>I installed osCommerce on Apache server. By default it sends out e-mails
          >>from the account 'nobody'. However, this option is turned off by the hosting
          >>provider. Is there a way to make it send mail from a real account? Is there
          >>a scripting solution for it (some PHP script)?
          >>
          >>[/color]
          >
          >To send an email from PHP where the sender appears as
          >notnobody@some where.com:
          >
          >$param="-fnotnobody@some where.com";
          >mail($to, $subject, $message, $header, $param);
          >
          >Geoff M
          >
          >[/color]
          You can try to replace php's ini setting for 'from_email' before sending
          the email , with ini_set() , and put it back after. Be aware that some
          hosts won't allow sending emails other than a valid 'from' email

          --
          Jorj

          Moderator SEO forum http://forum.bitcontent.com
          Webmaster community focusing on Internet marketing and website development issues
          --

          Comment

          Working...