473,231 Members | 1,984 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,231 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 1956
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

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.