473,396 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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
Jul 17 '05 #1
4 1960
pe***@gudzon.net says...
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)?


To send an email from PHP where the sender appears as
no*******@somewhere.com:

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

Geoff M
Jul 17 '05 #2
Thank you, Geoff, I'll try this.

Peter

"Geoff Muldoon" <gm******@nospam.scu.edu.au> wrote in message
news:MP************************@news.x-privat.org...
pe***@gudzon.net says...
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)?


To send an email from PHP where the sender appears as
no*******@somewhere.com:

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

Geoff M

Jul 17 '05 #3
"Peter Afonin" <pe***@gudzon.net> wrote in
news:11*************@corp.supernews.com:
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 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
Jul 17 '05 #4
Geoff Muldoon wrote:
pe***@gudzon.net says...

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)?


To send an email from PHP where the sender appears as
no*******@somewhere.com:

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

Geoff M

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
--
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: | last post by:
I have this class: --------------------------------------------- class A { string a; int instances; A(); static vector<A> all; public: static A *CreateA(...................);
4
by: Roland Zerek | last post by:
Hi, Is there any way to avoid the compiler/linker to optimize one (and only this) class member? Below is the code: <code> class MyFactory { /* . . . */ public static void Register(...
12
by: RA | last post by:
If I get the user info from an aso.net, and based on that execute some query against the database, how can I avoid issues like this one: Client entered in user name text box the following:...
4
by: Fro | last post by:
Hi, the operating system (Unix) considers a php-server as a user with name "nobody". For example, if my php-script saves a file uploaded by a user, the owner of the file will be "nobody". I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.