Setting Up PHP Mail() Function On New Server

Jan 12, 2007

how to set up the mail () function in my PHP.ini on a Linux server.

Is there a generic path that I need to use in order to allow the mail function to work in the scripts?

We do have a mail server set up, the address of which being "mail.companyname.com" ... do I need to insert that into the ini file somwhere instead?

View 0 Replies


ADVERTISEMENT

Server Slow After Using Mail Function

Apr 20, 2008

I used the mail function in php to send mails to my 25000 members in a loop..

After using it my server has gone very slow.. Load has increased a lot from 2 to around 20.. Major load is taken by sql and then httpd (both have increased)..

I had restarted mysql and httpd.. even reinstalled apache but no help..

View 14 Replies View Related

Howto Convert Ini_set Function In Code To Php.ini Setting

Jul 6, 2008

I have a website that was running fine for a month or two until my host recently changed some settings on the server, and now it shows a bunch of errors. I contacted the host and they said >

"To avoid the errors, please do not use disabled function. If you need such functionality, you can have your own php.ini on your root http folder containing only necessary option"

Since I'm not a programer, I have no idea what they're talking about. So, I asked them how to do that, they're reply of course was>

"Please consult with the script writer on how to convert ini_set function in your code to php.ini seting. As the script is not encrypted, you can do it with commenting all ini_set calls and write a substitute on php.ini (Create php.ini file in webroot folder)."

I tried to contact the developer, but it appears he has gone MIA! So, now I am left with no clue how to fix the website, so I turn to you guys!

The website is [url]. You can see the errors in the header, but I'll post them here as well>>

"Warning: ini_set() has been disabled for security reasons in /home/buymydom/public_html/includes/global.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/buymydom/public_html/includes/global.php:3) in /home/buymydom/public_html/includes/global.php on line 32

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/buymydom/public_html/includes/global.php:3) in /home/buymydom/public_html/includes/global.php on line 32"

My question is, How do I convert ini_set function in my code to php.ini?

View 3 Replies View Related

[cPanel] Function Mail(); And Fowarders E-mail - Not Working

Jul 24, 2007

I have problem:
1. Function mail(); not working

2. osCommerce e-mail error:

Code:
Gid 32157 is not permitted to relay mail, or has directly called /usr/sbin/exim instead of /usr/sbin/sendmail.

3. Fowarders working only on internal accounts e-mail
fowarder@mydomain.com --> email@mydomain.com - working
fowarder@mydomain.com --> my-emiail123@mail.pl - not working

This is VPS cPanel (OpenVZ) on my dedicated server.

View 3 Replies View Related

Disable Mail Function

May 21, 2008

I am starting to webhosting company in it I have included a package will be free and add supported and also I want to disable some functions like mail() ..........I mean I want to disable SMTP services anyone have idea how can I do that.

View 14 Replies View Related

Mail Function Not Work

Apr 5, 2008

the php mail function not work on my server!

when I run this function not show any error too.

for example I run this code:

<?php
echo "ok";
$to = 'myemail@mydomain.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: test@domainname.com' . "
" .
'Reply-To:test@test@domainname.com' . "
" .
'X-Mailer: PHP/' . phpversion();

if(mail($to, $subject, $message, $headers)){

echo "sent";

}else{

echo "notsent";
}
?>

View 14 Replies View Related

PHP Mail() Function Not Working

Dec 10, 2007

I have just changed servers and uploaded a mail() script which was working on my previous config but does not work on the new server config. What is stopping the emails from being delivered, is there something new in WHM that I need to do?

Here are my WHM and cPanel details:

WHM 11.11.0 cPanel 11.15.0-R18264
REDHAT 4 i686 on standard - WHM X v3.1.0

View 13 Replies View Related

PHP Mail() Function Does Not Work

Jul 25, 2007

I just re-installed PHP4, Apache, and MySQL and now the "mail" function in PHP will not work. Is there a way to correct this? Is there some configuration value in Apache or PHP I must change?

View 2 Replies View Related

How Much Can Php's Mail Function Really Handle

Apr 15, 2007

I have mixed feelings on the mail() function in php. I've seen it send out amazing numbers of emails and yet I keep reading that it is prone to problems. I'm wondering if someone can put an approximation on what you could/would send out in say 60 seconds. I know that there are tonnes of variables, so i'll try and remove a few:

- server hardware is typical of a cpanel/WHM shared hosting environment
- running apache/linux
- email is say 20kb HTML format
- mail is sent in a php script loop, one by one; alternatively, mail() could be called in clusters of x emails - like send 5 emails at once
- there are 400 recipients

View 7 Replies View Related

How To Enable/disable Mail() Function

Feb 16, 2009

how to know if mail() function is enabled or disabled on my server? how to enable/disable it?

can it be done via server control panel or is there a shell command for it?

one more thing, where to get/edit the SMTP data for my server?

View 14 Replies View Related

PHP Mail() Function Stopped Working

May 10, 2008

I have a dedicated that suddenly stop php mail() function to work.

Very strange because if I run php script with mail() function as root on command line all working fine.

But If I run php script with mail() function in my browser so not work. Seems that only ROOT can run mail() function.

View 3 Replies View Related

PHP Mail() Function Not Working With Lighttpd

May 10, 2007

I recently started using lighttpd + with PHP using Fast-CGI on a server hosting 14 blogs powered by WordPress, the server works great and this change reduced server load in about 50% which is nice for us, considering some of our blogs have a very high visitor traffic.

Our only problem so far is that since we switched to lighttpd the PHP's mail() function is just not working. I have compiled and re-compiled PHP and Lighttpd without any effects. I have a test site still working with Apache and PHP scripts can send mail without problems.

I've searched forums and Google for some kind of answer but none whatsoever maybe someone can give me pointers on how to solve this. Thanks a lot!!

Server details:

Lighttpd version: 1.4.15
PHP version: 4.4.4
Kernel: 2.6.9-42.0.3.ELsmp
Server has cPanel/WHM installed

PHP configure options:

--prefix=/usr/local --with-xml --enable-bcmath --enable-calendar --with-curl --enable-exif --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gettext --with-imap=/usr/local/imap-2004g --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex --with-mcrypt --enable-magic-quotes --with-mysqli --with-mysql=/usr --with-openssl --enable-discard-path --with-pear --enable-sockets --enable-track-vars --with-ttf --with-freetype-dir=/usr --enable-gd-native-ttf --with-xmlrpc --with-zlib --with-kerberos --with-imap-ssl --enable-fastcgi --enable-force-redirect

View 5 Replies View Related

Plesk 12.x / Linux :: Setting Up Mail With Hostname Hosted On A Different Server

May 14, 2015

I have a server that I use to host my primary domain, and I have a cople Plesk servers, now I updated the hostnames of all the servers like

Code: s1.de.myserverplace.de

Now when the plesk server sends a mail it goes in spam always,

In the SPF records of the primary domain sits this

Code:
myserverplace.de. IN TXT "v=spf1 a mx a:myserverplace.de a:s1.de.myserverplace.de ip4:148.251.100.157 ip4:144.76.163.46 ip6:2a01:4f8:201:81b8::60 ?all"

But when I actually send the mail in the headers of the received mail I get this.

Code:
Received: from s1.de.myserverplace.de (s1.de.myserverplace.de. [144.76.163.46])
by mx.google.com with ESMTPS id p2si2158952wjy.73.2015.05.14.04.09.17
for <mymailtestacount@gmail.com>
(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);

[Code] ....

How would I set this up so this doesn't happen?

View 3 Replies View Related

Configure Webserver So That The Php Scripts To Be Able To Use The Mail() Function

Mar 12, 2009

I just purchased a vps from rapidswitch, installed lamp, webmin, etc. All is working fine, with one exception. I can't send mail via mail() function.

I have set the MX so that my email addresses are handled by google for domains so i can send and receive mails without problems.

What i cant do, is for example to install a cms and make it send emails for the new registered users, etc.

I have installed postfix via yum, and i've tried to configure it.. but i kind of give up after a few hours of trying.

Someone could point me to the right direction on how to configure postfix for just this ? to be able to send mails via php.

I don't care if it's postfix, qmail, etc.

View 2 Replies View Related

Plesk 12.x / Windows :: PHP Mail Function Not Work

Aug 13, 2014

PHP Mail Function not work and i cant fix it :/

i dont know whats the problem, but php.ini is right.

i also test email-function here: [URL]

View 2 Replies View Related

Plesk 12.x / Linux :: From Header In Php Mail Function Being Overwritten

Feb 23, 2015

I'm trying to send email from a domain using code like this:

$email = "me@domain.com";
$from = "From: $email
";
mail($receiver, $subject, $message, $from);

But i see in the mail logs that from address is being overwritten using the default user for the domain. Is there anyway to configure plesk or postfix to respect those headers?

View 5 Replies View Related

Plesk 11.x / Linux :: Php Mail Function Don't Work And No Configuration Menu?

Mar 9, 2014

I'm experiencing some issue with the php function mail(). No mails can get out and no errors from php. Is there any menu where we can parameter this php function ? Do I need to check up some services ?

CentOS 6.5 with Plesk 11.5
Fresh install

View 15 Replies View Related

Plesk 12.x / Linux :: Outgoing Mail Control For Subdomains Does Not Function

Apr 7, 2015

Plesk 12.0.18 Update #38
Cloudlinux 6.6

Outgoing mail control functions properly for domains, but it does not count or limit subdomains.

For example, if you have a subdomain like:
sub.domain.tld

And an email account on that subdomain, like:
info@sub.domain.tld

Then outgoing mail limits are not applied to that subscription/domain/mail account. You are able to send more emails than the limit.

Also, if you go to:
-> Tools and Settings
-> Outgoing mail control

And try to see statistics for that subscription/domain/mail account, it shows that there are not sent emails, even if you have sent emails. Of course I checked it many hours after sending, or even the next days.

View 2 Replies View Related

Email Function Not Working (MS Window Server 2003)

May 23, 2008

We have a MS Window server 2003 with SP2, currently there is a website running, the webiste is desgined by using asp.net 2.0 c#.

We reinstalled the window server 2003 last week, and we found the email functions not working any more(users in the website can't receive email each other).

I have spent days and trying to figure out, but no luck, I have tried to reset the IIS settings, SMTP Virtual settings, and add/remove windows componets settings...

View 6 Replies View Related

Setting Up For Mail

Sep 25, 2007

I'm trying to get my server set up so I can send mail from a form on the page. I'm using PHP to send the email and it works fine on another server. What am I missing on my server to be able to send mail from the form?

View 6 Replies View Related

Setting Up A Mail System For Your Domain Name

Apr 25, 2009

I have had my domain for about 3 months now, www.mycwd.com.au - It is ran off a VPS and I purchased the Domain.

I was wondering if anyone can help me set up a mailing system so I can receive/send emails.

View 3 Replies View Related

Setting Up A Basic Fallback Solution For E-mail

Apr 25, 2009

I am considering moving my webhosting homepage to another network, so clients can still access our webpage when the network is down.

Because I use 4PSA DNS Manager on the server in the other network, I cannot run Plesk on that same server. They could be conflicting. I had more reasons of not installing Plesk on that server, but I forgot.

I would however host my mail on the old server, located in our own network, but with e-mail fallback, so we do not lose any e-mails that our clients have sent us.

Is such a configuration hard to configure? The server just needs to work as fallback server/batched SMTP server for 1 domain.

View 0 Replies View Related

Setting Up Cron Job To Kill Exim Mail Queue

Apr 19, 2009

how to setup hourly cronjob to kill exim mail queues on the cpanel server?

I know this question may sounds a little tedious as I have tried to find an answer to this but still have no clue yet.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved