f



does PHP mail() function depend on sendmail?

We're installing a new server at the office and this will be the first
server we set up from which we host our website. We got tired of
dealing with Interland and decided to bring our hosting in-house. The
guy doing most of the work struggled with sendmail for awhile and then
gave up. Now he's installing Postit, or Postfix, or whatever it's
called.

Does the PHP mail function depend on sendmail, or can it use any mta
software?
0
lkrubner (905)
9/15/2003 6:17:59 PM
comp.lang.php 32646 articles. 0 followers. Post Follow

5 Replies
614 Views

Similar Articles

[PageSpeed] 5

Hi,

lawrence wrote:
> We're installing a new server at the office and this will be the first
> server we set up from which we host our website. We got tired of
> dealing with Interland and decided to bring our hosting in-house. The
> guy doing most of the work struggled with sendmail for awhile and then
> gave up. Now he's installing Postit, or Postfix, or whatever it's
> called.
> 
> Does the PHP mail function depend on sendmail, or can it use any mta
> software?

Under Unix-a-likes, mail() relies on there being a sendmail-like 
interface. Most MTAs have a program that looks like sendmail for these 
purposes, and usually it gets symlinked into the right place. You don't 
need genuine sendmail.

Under Windows PHP does SMTP itself.

Regards,

Luke

0
lukeross (30)
9/16/2003 8:31:48 AM
Luke Ross <lukeross@sys3175.co.uk> wrote in message news:<vmdijktmjdf2e2@corp.supernews.com>...
> Hi,
> 
> lawrence wrote:
> > We're installing a new server at the office and this will be the first
> > server we set up from which we host our website. We got tired of
> > dealing with Interland and decided to bring our hosting in-house. The
> > guy doing most of the work struggled with sendmail for awhile and then
> > gave up. Now he's installing Postit, or Postfix, or whatever it's
> > called.
> > 
> > Does the PHP mail function depend on sendmail, or can it use any mta
> > software?
> 
> Under Unix-a-likes, mail() relies on there being a sendmail-like 
> interface. Most MTAs have a program that looks like sendmail for these 
> purposes, and usually it gets symlinked into the right place. You don't 
> need genuine sendmail.
> 
> Under Windows PHP does SMTP itself.
> 
> Regards,
> 
> Luke



We're running Red Hat 9 on the server. So we need to do into the PHP
config file and set a path to whatever MTA we eventually get going?
0
lkrubner (905)
9/16/2003 8:19:30 PM
Hi,

lawrence wrote:
> Luke Ross <lukeross@sys3175.co.uk> wrote in message news:<vmdijktmjdf2e2@corp.supernews.com>...
> 
>>lawrence wrote:
>>
>>>We're installing a new server at the office and this will be the first
>>>server we set up from which we host our website. We got tired of
>>>dealing with Interland and decided to bring our hosting in-house. The
>>>guy doing most of the work struggled with sendmail for awhile and then
>>>gave up. Now he's installing Postit, or Postfix, or whatever it's
>>>called.
>>>
>>>Does the PHP mail function depend on sendmail, or can it use any mta
>>>software?
>>
>>Under Unix-a-likes, mail() relies on there being a sendmail-like 
>>interface. Most MTAs have a program that looks like sendmail for these 
>>purposes, and usually it gets symlinked into the right place. You don't 
>>need genuine sendmail.
> 
> We're running Red Hat 9 on the server. So we need to do into the PHP
> config file and set a path to whatever MTA we eventually get going?

Ummm if you're using the RPM versions of everything, the chances are it 
will Just Work (tm). It will probably work if you're using RPM postfix 
and a self-built php as I believe RedHat symlinks postfix to 
/usr/sbin/sendmail

Regards,

Luke

0
lukeross (30)
9/17/2003 8:51:40 AM
I have the EXACT same problem except it's on an upgrade from 7.3 to 9
and now mail() does not work. It has the symlink
sendmail->/etc/alternatives/mta but it won't send out a single email.
Please let me know if you find a solution to this. You can email me at
eric0524@yahoo.com If I get a solution I will post it here. I think we
are not the only ones with this problem.

On 15 Sep 2003 11:17:59 -0700, lkrubner@geocities.com (lawrence)
wrote:

>We're installing a new server at the office and this will be the first
>server we set up from which we host our website. We got tired of
>dealing with Interland and decided to bring our hosting in-house. The
>guy doing most of the work struggled with sendmail for awhile and then
>gave up. Now he's installing Postit, or Postfix, or whatever it's
>called.
>
>Does the PHP mail function depend on sendmail, or can it use any mta
>software?

0
eric0524 (3)
9/24/2003 5:03:31 PM
eric <eric0524@yahoo.com> wrote in message news:<3fj3nvsvc2cg4qh7uul6uittmct28d8h93@4ax.com>...
> I have the EXACT same problem except it's on an upgrade from 7.3 to 9
> and now mail() does not work. It has the symlink
> sendmail->/etc/alternatives/mta but it won't send out a single email.
> Please let me know if you find a solution to this. You can email me at
> eric0524@yahoo.com If I get a solution I will post it here. I think we
> are not the only ones with this problem.
> 
> On 15 Sep 2003 11:17:59 -0700, lkrubner@geocities.com (lawrence)
> wrote:
> 
> >We're installing a new server at the office and this will be the first
> >server we set up from which we host our website. We got tired of
> >dealing with Interland and decided to bring our hosting in-house. The
> >guy doing most of the work struggled with sendmail for awhile and then
> >gave up. Now he's installing Postit, or Postfix, or whatever it's
> >called.
> >
> >Does the PHP mail function depend on sendmail, or can it use any mta
> >software?


Seems like he finally got it to work, though it took him hell's own
amount of time. I'll ask what he did. Did you get your problem
resolved?
0
lkrubner (905)
10/8/2003 8:04:53 AM
Reply:

Similar Artilces:

PHP logs not working, and unable to send mail through sendmail via PHP
Hoping someone can help me out with this problem. First problem, is I am unable to view my php error log. In my php.ini I have my log in /var/www/logs/php_error_log. However, it has remained empty. Secondly, my sendmail works fine from command prompt. However, when trying to send mail through a php script (I have tried a couple), it says it is succesfull, but my mail logs show nothing going out. No error messages. Can someone take a look at my snippets below of my logging and my mail options and suggest some things for me to try please? Thanks. :) -Wayne Stevenson [PHP] ;;;;;;;;;;;;;;;;;;; ; About this file ; ;;;;;;;;;;;;;;;;;;; ; ; This is the recommended, PHP 4-style version of the php.ini-dist file. It ; sets some non standard settings, that make PHP more efficient, more secure,........ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Error handling and logging ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; error_reporting is a bit-field. Or each number up to get desired error ; reporting level ; E_ALL - All errors and warnings ; E_ERROR - fatal run-time errors ; E_WARNING - run-time warnings (non-fatal errors) ; E_PARSE - compile-time parse errors ; E_NOTICE - run-time notices (these are warnings which often result ; from a bug in your code, but it's possible that it was ; intentional (e.g., using an uninitialized variable and ; relying on the fact it's automatically initia...

PHP mail() function is sends emails to sendmail but they never get received
Hi... I got a really a nasty problem with my mail() function... I have a form mailer on my website which is using the mail() funcion of my own webserver. After sending a message the mail script is telling me that the email was send correct. But nobody is receiving it. I have tried a lot of different domains incase that the email address which I have used been blocked because of SPAM. The mail() function has worked for long time.....and I did nothing changed on the configuration. What is the reason for this? I couldn't find anything information regarding this problem. Thanks for your he...

PHP mail() function failing to send mail
Hi everyone, Our setup: PHP 4.3.11, FreeBSD 5.3 RELEASE, Sendmail 8.1, 1 host environment, 2 jails. Our problem: While we can send email from the command line just fine in one of the jails, we cannot use the php mail() command to send email using sendmail at all. The function, when executed, does absolutely nothing. No error, no reports to the maillog, nothing. I've read somewhere that it's "not possible" to send mail using the php mail() function within a freebsd jail, but i'm nearly certain we have it working this way on another server, but can't seem to figure out the issue. Anyone know any tests we can do to learn more? Thanks. Check out the log messages from your sendmail... If it's not logging anything, try increasing (temporarily) the log level (24 should be more than enough) Probability says that you're running into a permission issue with sendmail. Probably your PHP/Apache user is not allowed to relay email. I'm not sure this might apply since I am not familiar to BSD, but, had similar problems with a RH machine just a few days ago ...

php mail function
i have set up a feedback form that emails the results. my web host says it will not work if the email is coming from nobody. this is their answer "you are just going to have to learn to tell your scripts to generate th emails as someone@yourdmain - not just as nobody." does anyone know how to make this happen? Quinonez wrote: > i have set up a feedback form that emails the results. my web host > says it will not work if the email is coming from nobody. this is > their answer "you are just going to have to learn to tell your > scripts to generate th emails as someone@yourdmain - not just as > nobody." > does anyone know how to make this happen? By using the fourth argument of the mail() function to send a "From: someone@yourdomain" header. See: http://www.php.net/manual/en/function.mail.php JW how would i set this up? On 17 Dec 2004 08:15:54 -0800, Quinonez <quinonez@gmail.com> wrote: > how would i set this up? > Nothing to set up, just include the from argument: mail('to email', 'subject', 'message', 'From: yourstruly@yourdomain.com'); -- Thomas SELECT date FROM wife WHERE bitching = '0' AND sex = '1' ive set this up like so <? mail("quinonez@gmail.com", "subject", "my message", "From: webmaster@masterscommissioneurope.com\r\n"); ?> but im still not recieving the emails..... the host says its because...

PHP + SENDMAIL = mail()
What are the steps to configure PHP and sendmail on a linux BOX (Specifically Fedora Core 2 or 3) in order to make mail() function to work ? I haven't done any changes ... my configuration files are as they came with Fedora Core Distro Any relating links, tutorials would be usefull.... Thanks This is the ERROR THAT I GET: Failed delivery status Final recipient adevletoglou@redcatmedia.net Reason for failure 501 5.1.8 <apache@localhost.localdomain>... Domain of sender address apache@localhost.localdomain does not exist Reporting mail server localhost.localdomain What and where do I have to configure ? > Are you sure it's a PHP.INI issue, or something else? For instance - Does > the domain localhost.localdomain actually exist? Is this server local to > you or on a webserver someplace? Do you have an MTA running on this host? > Jerry thanks for your reply, Actually I am not sure what I have to do... Server is a linux box in my LAN... I do not know what you mean when you ask if the localhost.localdomain exists .... and I don't know what is MTA or if I have to have it running ... Below are some lines from sendmail.mc ... Ihaven't configured anything there... so if you thing that I have to edit something , pls tell me by example. DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl dnl DAEMON_OPTIONS(`Port=smtps, Name...

MS-Windows mail servers and PHP's mail() function
I have a contact form that uses PHP's mail() function. It recently came to my attention that (some?) MS-Windows mail servers may not properly process data given to the mail() function that's only newline-terminated. The mail() function takes up to five parameters: mail(recipient, subject, message, [headers [,parameters]]) The ones of interest here are the first four. The questions are these: 1. Since recipient and subject are not multi-line, and, from the web form, don't even contain newlines, is it safe to assume they need neither newlines nor carriage-returns? 2. The message, from the web form, contains newlines. I assume all newlines need carriage-returns inserted in front of them? 3. The headers are created, in the web form processing, by appending newline-terminated strings to a variable (e.g.: headers .= "blah: yadda\n";). I presume that this string likewise needs carriage-returns inserted before the newlines? 4. I've seen mention of problems with "hanging carriage-returns." I presume that simply means there should be no line, blank or otherwise, that contains a carriage-return w/o an accompanying newline? Assuming all the above to be true, my four parameters would look like: recipient: "somebody@example.com" subject: "Some subject" message: "Some message\r\ntext\r\ngoes here\r\n" headers:...

PHP Training Institute In Delhi, Live Projects on PHP. Short Term PHP Courses, PHP Scripts, PHP Training with Live Projects.
Vserve Global offers short term PHP: Hypertext Preprocessor Training Course, which is a widely used, general-purpose scripting language that was originally designed for web development, to produce dynamic web pages. It can be embedded into HTML and generally runs on a web server, which needs to be configured to process PHP code and create web page content from it. It can be deployed on most web servers and on almost every operating system and platform free of charge.PHP is installed on over 20 million websites and 1 million web servers. TOPICS:- >> Core PHP Language >> HTML, Cascad...

php outside php (?)
Sounds weird, i know. What i want/wonder is the following: PHP can do the next: <?php if($foo == 'bar') { ?> Ow yeah, foo is bar! <?php }; ?> But how can i do the following: <?php $foo= ?> this is what foo looks like. <?php }; ?> This way i could edit the content of $foo in DW's design-view. I hope it's clear enough for you all to understand... Greetings frizzle. frizzle wrote: > But how can i do the following: > > <?php > > $foo= > > ?> > this is what foo looks like. > <?php > > }; > > ?> > > This way i could edit the content of $foo in DW's design-view. > I hope it's clear enough for you all to understand... <?php ob_start(); ?> this is what foo looks like. <?php $foo=ob_get_clean(); ?> -- Justin Koivisto - justin@koivi.com http://koivi.com Wow, little late on the reply, but i still wanted to thank you for your help. This is exactly what i meant, and it works great! :D Thanks again. ...

PHP mail() function in chroot
On my webserver the web components are seperated into a chroot jail so it cannot access any of the mail (courier-mta) components. Does anyone know of a way to change how mail() functions? i.e. have it connect to an smtp server, rather than try to refrence the sendmail binary? Any help would be greatly appreciated! thanks. This is a multi-part message in MIME format. ------=_NextPart_000_00C2_01C3E745.A30A3260 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable http://phpmailer.sourceforge.net/ ____________________________________ Wil Moore III, MCP | Integrations Specialist | Senior Consultant DigitallySmooth Inc. | Quick Site Studio "Andy" <nospam@nospam.com> wrote in message = news:UrxSb.8782$%72.7644@twister.nyroc.rr.com... On my webserver the web components are seperated into a chroot jail so = it cannot access any of the mail (courier-mta) components. Does = anyone=20 know of a way to change how mail() functions? i.e. have it connect to = an=20 smtp server, rather than try to refrence the sendmail binary? Any = help=20 would be greatly appreciated! thanks. ------=_NextPart_000_00C2_01C3E745.A30A3260 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859...

php to php obj
Hi All, Is there any tool to convert the .php files into its object files in deploying the files to other's server like java classes are deployed? Thanks in advance --AR John7481 <arjohn7481@hotmail.com> wrote or quoted: > Is there any tool to convert the .php files into its object files in > deploying the files to other's server like java classes are deployed? To what end? Do you want a PHP obfuscator? They tend not to be needed - since the code remains on the server. Do you want a PHP squeezer? Again - since PHP remains on the server that is of reduced importance. PHP obfuscators and squeezers are out there - but what exactly are you looking for? -- __________ |im |yler http://timtyler.org/ tim@tt1lock.org Remove lock to reply. With total disregard for any kind of safety measures Tim Tyler <tim@tt1lock.org> leapt forth and uttered: > John7481 <arjohn7481@hotmail.com> wrote or quoted: > >> Is there any tool to convert the .php files into its object >> files in deploying the files to other's server like java >> classes are deployed? > > To what end? > > Do you want a PHP obfuscator? They tend not to be needed - > since the code remains on the server. > > Do you want a PHP squeezer? Again - since PHP remains on the > server that is of reduced importance. > > PHP obfuscators and squeezers are out there - but what exactly > are you looking for? I think he'...

php mail() function does nothing
Hey everyone, We've got FreeBSD 5.3, with Sendmail running. All we want to do is to get sendmail to send emails to another server for actual outbound email. We've got a very basic php script which utilizes the mail() function, but for some reason, sendmail is never getting the command from PHP. So, we can successfully send email using sendmail from the command prompt, but when it comes to using the PHP mail() function, nothing happens. Not even an error message from PHP. We have in our php.ini a direct path all the way to sendmail configured. I'm at a loss as to why PHP mail() isn't even spitting back an error. The maillog shows nothing from PHP. Are there any variables, extensions that need to be compiled, etc to make mail() work? Thanks!! tencip: > > We have in our php.ini a direct path all the way to sendmail > configured. I'm at a loss as to why PHP mail() isn't even spitting > back an error. The maillog shows nothing from PHP. > > Are there any variables, extensions that need to be compiled, etc to > make mail() work? Did you set sendmail_from? That may be it as well. Also perform a trace of sendmail when PHP goes to send an email. Also note from the manual: " For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail wrappers that come wit...

PHP mail() function problem
Hi all, I want to send mails using php mail() function, my web server is apache on linux i just add this line to my code ini_set('sendmail_from', 'users@must.edu.eg'); i'm sending emails to users at the same domain ....@must.edu.eg but it didn't send mail also it don't give any errors but i'm sure that mail server is working coz when i'm trying to send mails to the same domain through outlook it works well. i tried to send to hotmail it sends just one mail but when i tried again the same happened no mails sent with no error. where do u think the problem???? noha khalifa wrote: > Hi all, > > I want to send mails using php mail() function, my web server is > apache on linux i just add this line to my code > ini_set('sendmail_from', 'users@must.edu.eg'); > > i'm sending emails to users at the same domain ....@must.edu.eg but it > didn't send mail also it don't give any errors > > but i'm sure that mail server is working coz when i'm trying to send > mails to the same domain through outlook it works well. > > i tried to send to hotmail it sends just one mail but when i tried > again the same happened no mails sent with no error. > > where do u think the problem???? You didn't show your code, so it's impossible to tell. You shouldn't be using ini_set for 'sendmail_from' - that's just a default value. Rather, you should be ...

PHP mail () function configuration
hi every body, i have a problem which is when i was checking my mail() form it work fine but the problem is that the form configuration is not set correctly, in details: the from var is not working and the from is set to be my host provider email is the sender, so they told me to configure the php.ini file and i dont know what is this file and how to configure it. thanks in advance shror www.s7els7.com www.beachtoursegypt.com www.mobidp.com On Feb 22, 2:32 am, "shror" <shahi...@gmail.com> wrote: > hi every body, > > i have a problem which is when i was checking my mail() form it work > fine but the problem is that the form configuration is not set > correctly, in details: > the from var is not working and the from is set to be my host provider > email is the sender, so they told me to configure the php.ini file and > i dont know what is this file and how to configure it. > > thanks in advance > > shrorwww.s7els7.comwww.beachtoursegypt.comwww.mobidp.com The php.ini file is your php configuration file, if you are on windows it should be in you c:\windows directory, if you are on linux it should be on you /etc directory (I could be wrong on this, haven't configured php on linux in awhile), not sure where it would go in Mac OS X On 22 Feb, 10:32, "shror" <shahi...@gmail.com> wrote: > hi every body, > > i have a problem which is when i was checking my mail() form it work > fine but the prob...

Problem with Mail()
In my PHP 5.0 at home, I'm using the following code to successfully write to a database and also send out an email. For some reason, when I take this code to work, it still writes to the database but doesn't send mail so we're (me and the I.T. guy) trying to find out whether it's the difference between PHP 4 or something else with email security. Does anyone here have experience with mail() in PHP 4 to know whether PHP 4 had issues with mail() that were fixed with PHP 5 ???? We've been chasing this from the mail server side at work when perhaps its some nuance between versions of PHP. Appreciate any help... Chris /* > $to = stripslashes($to); */ $to = stripslashes($to)."\r\n"; $subject = stripslashes($subject); $text = stripslashes($text); /* > mail('$to',$subject, $text); */ mail($to, $subject, $text, "From: admin@localhosthome.com"); cover wrote: > $to = stripslashes($to)."\r\n"; > Might or might not be the cause, but you should remove the trailing CRLF here. JW On Mon, 27 Feb 2006 22:33:57 +0100, "Janwillem Borleffs" <jw@jwscripts.com> wrote: >cover wrote: >> $to = stripslashes($to)."\r\n"; >> > >Might or might not be the cause, but you should remove the trailing CRLF >here. Thanks for the reply. I tried it after reading your post and no change... Thanks again, cover wrote: > In my PHP 5.0 at home, I'm using the following co...

PHP mail function is spammer?
I don't understand why any message sent with mail functions is automatically stored in the spam by Gmail. Sillaba While the city slept, Sillaba atona (NOSPAM@tin.it) feverishly typed... > I don't understand why any message sent with mail functions is > automatically stored in the spam by Gmail. > There could be many and varied reasons... Are you setting a return path? And is that the same as the address the mail "comes" from? Does the mail you are sending have a "from" address that corresponds to the server you are sending from? Does the mail you are sending have anything in it that could be construed as spam? eg, html email with much graphics, little text, etc Is the server you are running off on any spam lists? There are more issues to consider, but I can't think of any right now (just come back from the pub ;-) ) Theoretically, if you are sending a few emails out from the mail function, you shouldn't suffer too much, unless some of, or all, or more than, the above are an issue. Hope that helps, Nige -- Nigel Moss http://www.nigenet.org.uk Mail address will bounce. nigel@DOG.nigenet.org.uk | Take the DOG. out! "Your mother ate my dog!", "Not all of him!" On 2007-08-01, nice.guy.nige <nigel_moss@deadspam.com> wrote: > Are you setting a return path? And is that the same as the address the mail > "comes" from? > Does the mail you are sending have a "from" address th...

PHP mail() function and maillog
Hello. Under linux, when I use the mail() function in php there seems to be no record of it in any mail log file or system messages. Anyone know where the log of mails sent might be stored? I know the code to send the mail is running, but I want to confirm that the server is trying to send out the mails. Thanks, Dave. -- Fermat was right. David Gillen wrote: > Hello. > > Under linux, when I use the mail() function in php there seems to be no record > of it in any mail log file or system messages. Anyone know where the log of > mails sent might be stored? I know the code to send the mail is running, but > I want to confirm that the server is trying to send out the mails. > > Thanks, > Dave. The default location of the mail log on linux machines is: /var/log/mail ...

PHP mail function #2
Hello, can any one help me with the following issue: I use PHP mail function to send emails, when I receive these emails I find some exclamation marks (!) added in the text, this is weird. Can any one help me. Hello, on 02/13/2008 05:39 PM Ahmad said the following: > Hello, can any one help me with the following issue: > > I use PHP mail function to send emails, when I receive these > emails I find some exclamation marks (!) added in the text, this is > weird. Can any one help me. It seems you have lines in your messages that need to be encoded properly with quoted-printable encoding. You may want to try this MIME message compose and sending class that can do that for you without having to learn too much about message encoding standards: http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos PHP professionals looking for PHP jobs http://www.phpclasses.org/professionals/ PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ ...

PHP within PHP...
I took over the support of a website that is set up something like this inside one of the pages: include_once("header.php"); <?php //to get the content of the page they do this: $content = mysql_query("select content etc...); echo $content; ?> include_once("footer.php"); I am having problems evaluating any php that is used in the mysql content. Is there a way to get the mysql withing the mysql to run? Thank you for your time, Mandragon On Sep 17, 12:56 pm, Mandrago...@gmail.com wrote: > I took over the support of a website that is set up something like > this inside one of the pages: > > include_once("header.php"); > > <?php > //to get the content of the page they do this: > $content = mysql_query("select content etc...); > > echo $content; > ?> > > include_once("footer.php"); > > I am having problems evaluating any php that is used in the mysql > content. Is there a way to get the mysql withing the mysql to run? > > Thank you for your time, > > Mandragon Sorry, The question should read: "Is there a way to get the php withing the echo $htmlcontent to run?" Of course you are, $content is a resource. The MySQL Query resource. try this: $content = mysql_query('bla bla bla'); while ($row = mysql_fetch_assoc($content)) { $result[] = $row; } $content = $result; Now you can use $content ;). In answer to your edit... eval($co...

when receiving the mail(php mail function), the variable's last value is getting converted to $ or # replacing the digit
Below is my code: But when I receive the mail, I don't get the last two digits in the $post_url. I tried displaying the same message on the page and it displayes $post_url properly. But when I receive the mail, I get the value of $post_url as www.32minutesforum.com/post_clicked.php?id$. where as I should get www.32minutesforum.com/post_clicked.php?id<some number>. i.e. www.32minutesforum.com/post_clicked.php?id15 Please help! File: <?php include 'connect.php'; include 'header.php'; echo '<div class="holder_content">'; echo '<section class="group_text">'; echo 'Posted successfully. Check your post <a href="'.$_SESSION['reply_post_id'].'">HERE</a>'; $post_url = $_SESSION['reply_post_id']; $to= $_SESSION['post_email']; $subject="You just got a reply for your post in 32minutesforum.com"; $message=' <html> <head> <title>32 Minutes Forum</title> </head> <body> <p>You got a reply for your post title: '. $_SESSION['post_title'].'.</p> <p>Check your post in:<br/>www.32minutesforum.com/'.$post_url.'.</p> <p>Thanks for using 32minutesforum.com.<br/> Thank you,<br/> 32minutesforum.com Team.</p> </body> </html>'; ...

TCL/PHP problem involving a PHP function that has to utilize a TCL proc
I wrote this PHP function in the hopes that it would properly use a TCL proc I wrote about 4 years ago: if (!function_exists('proper_case')) { /** * Ths function will convert a string into a proper case format using the customized TCL proc "PROPER_CASE" from the included TCL string tools libraries * * @access public * @param mixed $text * @param mixed $tclLibPath Path to TCL Library files * @param DBActionPerformer $dbAP You must generate a descendant of MethodGeneratorForActionPerformer to retrieve customized command-line formatting to call TCL shell * @return mixed $text properly formatted in Proper Case Form * @see DBActionPerformer * @uses tcl_string_tools::PROPER_CASE */ function &proper_case($text, $tclLibPath, $dbAP) { if (!is_object($dbAP)) $dbAP =& new DBActionPerformer(); // NO NEED TO CONNECT NOR DISCONNECT list('tclKommand', 'tclRedirect') = @array_values($dbAP->getKommandOSArray('tcl')); $tclSourceString = @tcl_lib_include($tclLibPath); if (!preg_match('/;[\n\r\s\t]*$/i', $tclSourceString)) $tclSourceString .= ';'; // ADD ";" TO ADD ONE MORE TCL COMMAND TO THE SINGLE LINE $msg = exec("$tclKommand \"$tclSourceString puts [PROPER_CASE {$text}]\" $tclRedirect"); if (preg_match('/^[eE](rror:)/i', $msg)) { trigger_error("Error involving TCL proc \"PROPER_CASE\" on \"$text\": " . nl2br($msg), E...

Anyone here follows the mailing list php-general@lists.php.net?
I tried posting to it (I am subscribed and have posted to it successfully before, but this time I got this error message: >> This message was created automatically by mail delivery software. >> >> A message that you sent could not be delivered to one or more of its >> recipients. This is a permanent error. The following address(es) >> failed: >> >> php-general@lists.php.net >> SMTP error from remote mail server after end of data: >> host pair1.php.net [76.75.200.58]: 550 we're manly enough already WTH...

Mail() does not function on FreeBSD and PHP and Qmail or Postfix
I have a problem with the PHP mail() function on a running Qmail server on FreeBSD 5.2.1. Pretty like this problem, I found in the mail archive : http://lists.freebsd.org/pipermail/freebsd-questions/2003-August/017231.html Please, can somebody help me out. With this problem and the PHP mail() function. OS : FreeBSD 5.2.1 Mailserver: Qmail PHP : 5.0.2 (4.3.9 same error) Step 1: Testing of the qmail server in shell: I create a test.eml file with: <snip> Message-ID: <802973227.20041027110037@person.be> Date: Wed, 27 Oct 2004 11:00:37 +0200 From: me <me@mydomain.loc> To: me2@mydomain.loc Subject: Local test Helleuu. </snip> I test the mailserver from shell with: cat test.eml | /var/qmail/bin/qmail-inject (mail arrives) cat test.eml | /usr/sbin/sendmail -t -i (mail arrives) Step 2: I deinstalled the whole bunch of PHP 4.3.9 with: pkg_delete -x "php4*" pkg_delete -x "pecl-*" rm -d -r /usr/local/lib/php /usr/local/include/php Step 3: Install minimum PHP system. cd /usr/ports/lang/php5 make WITH_APACHE=yes PHP_SAPI=full make WITH_APACHE=yes PHP_SAPI=full install Step 4: Configure right php.ini and verify it works cp /usr/local/etc/php.ini-dist /usr/local/etc/php.ini Change ;sendmail_path into sendmail_path = /var/qmail/bin/qmail-inject (note: same behaviour when i use, or I use ; before sendmail) sendmail_path = /usr/sbin/sendmail -t -i qmail-inject can be accessed and executed from others. Write a test....

Enable Mail function for PHP under Windows XP
Hello, I have installed Apache2.0 and PHP4.3 on my PC under Windows XP. What are the different steps to make the mail function work. I think I have to install first a mail server, but I don't know where to find one that is relatively 'easy' to install and configure. Any help on the subject will be greatly aprecheated. Thank you. "JB" <jeanbaptiste_isnardon@yahoo.fr> a �crit dans le message news: 477bc493.0406210457.4e24d6c8@posting.google.com... > Hello, > > I have installed Apache2.0 and PHP4.3 on my PC under Windows XP. > What are the different steps to make the mail function work. > I think I have to install first a mail server, but I don't know where > to find one that is relatively 'easy' to install and configure. > > Any help on the subject will be greatly aprecheated. > > Thank you. in php.ini file find line with the keyword smtp SMTP = your_internet_service_provider_smtp_server_address ex : [mail function] ; For Win32 only. SMTP = smtp.your_internet_service_provider.com -- paul jeanbaptiste_isnardon@yahoo.fr (JB) wrote in message news:<477bc493.0406210457.4e24d6c8@posting.google.com>... > Hello, > > I have installed Apache2.0 and PHP4.3 on my PC under Windows XP. > What are the different steps to make the mail function work. > I think I have to install first a mail server, but I don't know where > to find one that is relatively 'easy' to install and co...

PHP, sendmail, and mail() - VERY SLOW
I'm working with a LAMP platform - PHP 5.1.4, MySQL 5.0.21, RedHat Enterprise 4... Running Sendmail 8.x. I'm using the PHP mail() function to send some confirmation emails out when a user submits a form. My understanding is that this is basically a wrapper for sendmail (specifically, sendmail -t -i). In my development environment, this works great. Everything is fast and wonderful. In my production environment, it takes 10-15 seconds or more before the mail() function completes. If I comment out that function, the page is nice and quick again. Does anyone have any ideas of what sort of configuration issue this might be (I'm assuming this is a config issue). My sendmail config (/etc/sysconfig/sendmail) is pretty simple right now, it's just specifying DAEMON=yes and QUEUE=1m. Any advice would be much appreciated. Thanks in advance. Evan Try to send an email from your system's command line or a standalone application. If it's also slow it means that your SMTP server (or enviroment) is just slow. I use www.xpertmailer.com to send emails, it has tons of great features [attachments, CC, BCC, etc] and excellent support (via forum). Try it! I send emails via GMail and it takes 1-3 secs. Regards, Luke ...

Web resources about - does PHP mail() function depend on sendmail? - comp.lang.php

Open Source - Sendmail.com
Sendmail partners include a host of leading companies who share a proven track record of developing and delivering complimentary email products ...

Sendmail - Wikipedia, the free encyclopedia
This article is about the mail transfer agent. For the company, see Sendmail, Inc. . Sendmail is a general purpose internetwork email routing ...

Companies mobilize to patch Sendmail
... has security experts and software companies moving quickly to convince customers to apply a patch. A critical vulnerability in Sendmail, the ...

Sendmail hit by data interception flaw
Internet security researchers have discovered a serious flaw in versions of the widely-used Sendmail open-source e-mail software. The flaw could ...

Sendmail Adds Calendaring, Scheduling
E-mail server software developer Sendmail Inc. is branching out into groupware with the addition of its Calendar Server.


Sendmail Launches 'Rogue Email Application Control' Appliance
Sendmail this week announced the release of the Sentrion Rogue Email Application Control (REAC) appliance, a new offering designed to address ...

Another vulnerability found in Sendmail
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners . You can withdraw ...

Sendmail Hit by Data Interception Flaw - Slashdot
FreeBSD also has details in their security notification. Those guys are fast - if you want to have up to date info on security vulns., FreeBSD ...

Email Offline At the Home of Sendmail 179
... "The UC Berkeley email system has been either offline, or only providing limited access, for more than a week. How can the place where sendmail ...

Resources last updated: 3/24/2016 6:36:57 AM