Connecting Tech Pros Worldwide Help | Site Map

how to avoid 'nobody'

Peter Afonin
Guest
 
Posts: n/a
#1: Jul 17 '05
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
Guest
 
Posts: n/a
#2: Jul 17 '05

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
Peter Afonin
Guest
 
Posts: n/a
#3: Jul 17 '05

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]


Good Man
Guest
 
Posts: n/a
#4: Jul 17 '05

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
jorj
Guest
 
Posts: n/a
#5: Jul 17 '05

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