Connecting Tech Pros Worldwide Help | Site Map

how to avoid 'nobody'

  #1  
Old July 17th, 2005, 01:15 PM
Peter Afonin
Guest
 
Posts: n/a
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


  #2  
Old July 17th, 2005, 01:15 PM
Geoff Muldoon
Guest
 
Posts: n/a

re: how to avoid 'nobody'


peter@gudzon.net 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@somewhere.com:

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

Geoff M
  #3  
Old July 17th, 2005, 01:15 PM
Peter Afonin
Guest
 
Posts: n/a

re: how to avoid 'nobody'


Thank you, Geoff, I'll try this.

Peter

"Geoff Muldoon" <gmuldoon@nospam.scu.edu.au> wrote in message
news:MPG.1cac98f47eac7e90989683@news.x-privat.org...[color=blue]
> peter@gudzon.net 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@somewhere.com:
>
> $param="-fnotnobody@somewhere.com";
> mail($to, $subject, $message, $header, $param);
>
> Geoff M[/color]


  #4  
Old July 17th, 2005, 01:16 PM
Good Man
Guest
 
Posts: n/a

re: how to avoid 'nobody'


"Peter Afonin" <peter@gudzon.net> wrote in
news:1143qkf85b0ub26@corp.supernews.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.

http://www.phpclasses.org/browse/package/9.html
  #5  
Old July 17th, 2005, 01:21 PM
jorj
Guest
 
Posts: n/a

re: how to avoid 'nobody'


Geoff Muldoon wrote:
[color=blue]
>peter@gudzon.net 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@somewhere.com:
>
>$param="-fnotnobody@somewhere.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
--
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to avoid script database hacking? RA answers 12 November 18th, 2005 04:33 PM
How to avoid compiler/linker optimization Roland Zerek answers 4 November 16th, 2005 04:57 AM
advice re convincing someone to avoid table layouts Michael Rozdoba answers 16 July 21st, 2005 02:33 AM
How to avoid "f.close" (no parens) bug? Michael Chermside answers 0 July 18th, 2005 09:25 AM