Connecting Tech Pros Worldwide Help | Site Map

how to avoid 'nobody'

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 12:15 PM
Peter Afonin
Guest
 
Posts: n/a
Default 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



  #2  
Old July 17th, 2005, 12:15 PM
Geoff Muldoon
Guest
 
Posts: n/a
Default 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, 12:15 PM
Peter Afonin
Guest
 
Posts: n/a
Default 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, 12:16 PM
Good Man
Guest
 
Posts: n/a
Default 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, 12:21 PM
jorj
Guest
 
Posts: n/a
Default 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
--
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.