The Php error logs look like they're related to a joomla extension, but they
may be halting the script. I would recommend creating a simple script and
call mail() to make sure the interpreter is even making it to the mail
function. Maybe you have already done that?
Are you using a shared server? If so, sendmail will typically already be
setup so if you have problems with the simple version of the mail script you
may get your provider to check it out. If you've setup your server yourself
there may be a bit more monkeying around.
I believe the sendmail logs are in /var/log/sendmail...? but I could be
wrong.
If you haven't already, see what happens by running the code below in it's
own file, avoiding any Jooma! code, and checking the inboxes of your 2
addresses.
<?php
// I would try at least 2 email addresses at different domains
if(mail('[email protected], [email protected]', 'Mail test', 'this is
some mail'))
{
echo 'Mail sent';
}
else
{
echo 'Mail not sent';
}
?>
On Thu, May 12, 2011 at 6:36 PM, MWD - Admin <[email protected]>wrote:
> The section of code the error log is pointing to:
>
>
>
> // expression to search for
>
> $regex = '/{(jumi)\s*(.*?)}/i'; //BUG: des not work with written
> codes containing
>
> // if hide_code then replace jumi syntax codes with an empty string
>
> * if ( $pluginParams->hide_code == 1 ) {*
>
> $content = preg_replace( $regex, '', $content );
>
> return true;
>
> }
>
>
>
> The bolded and underlined statement (the if sataement) is line 39…
>
>
>
> Thanks,
>
> Bud
>
> *Contact Info*
>
> Address:
>
> 24885 Road 178
> Defiance, Ohio 43512-9331
> Map<http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=24885+Road+178,+Defiance,+OH+43512&sll=37.509726,-95.712891&sspn=29.970263,56.601563&ie=UTF8&ll=41.181529,-84.343801&spn=0.006977,0.013819&z=16&iwloc=A>
>
> Phone:
>
> (419) 770-1960 (cell)
>
> E-mail:
>
> [email protected]
>
> Skype:
>
> manzwebdesigns
>
> Twitter:
>
> @manzwebdesigns <http://www.twitter.com/manzwebdesigns/>
>
> [image: Description: LinkedIn] <http://www.linkedin.com/in/manzwebdesigns>
>
> [image: Description: ManzWebDesignBlue] <http://www.manzwebdesigns.com/>
>
>
>
>
>
> *From:* Travis Paul [mailto:[email protected]]
> *Sent:* Thursday, May 12, 2011 6:07 PM
> *To:* Fort Wayne Linux Users Group
> *Subject:* Re: [fwlug] PHP Mail() function not sending mail
>
>
>
> I just had the php mail() battle recently, but the worst part was that it
> was on a Windows Box, but it ended up being a reverse DNS issue.
>
>
>
> Do you have a Non-Delivery Report or any logs?
>
> On Thu, May 12, 2011 at 6:00 PM, MWD - Admin <[email protected]>
> wrote:
>
> Hey everyone,
>
>
>
> I am tired of beating my brains on this one…
>
>
>
> I have a script that sends email using the PHP mail() function. It doesn’t
> send and it doesn’t fail.
>
>
>
> [code]
>
>
>
> …
>
> $message = " $todayis [EST]\n
>
> Attention: $attn\n
>
> Message: $notes\n
>
> From: $visitorfull ($visitormail)\n
>
> Phone: $visitorphone\n
>
> Additional Info : IP = $ip\n
>
> Browser Info: $httpagent\n
>
> Referral : $httpref\n
>
> Referring page : $from_page\n
>
> ";
>
>
>
> $from = "From: $visitorfull <$visitormail>\n";
>
> $extra = "-f {$admin_email}";
>
>
>
> $sent = mail($admin_email, $subject, $message, $from, $extra);
>
>
>
> if($sent) {
>
> echo "Mail sent successfully!";
>
> }
>
> …
>
>
>
> [/code]
>
>
>
> It seems that my server is using /etc/alternatives/mta instead of sendmail
> for mail delivery.
>
>
>
> [snip]
>
>
>
> [root@server etc]# cat php.ini | grep sendmail_path
>
> sendmail_path = "/usr/sbin/sendmail -t -i"
>
>
>
> [root@server etc]# ls -als /usr/sbin/sendmail*
>
> 0 lrwxrwxrwx 1 root root 21 Mar 16 10:36 /usr/sbin/sendmail ->
> /etc/alternatives/mta
>
> 204 -rwxr-xr-x 1 root root 201784 Apr 13 18:55 /usr/sbin/sendmail.postfix
>
> 764 -rwxr-sr-x 1 root smmsp 775064 Mar 31 2010 /usr/sbin/sendmail.sendmail
>
>
>
> [/snip]
>
>
>
> I added the “$extra …” snippet from a post found on php.net in the mail
> function page.
>
>
>
> Please, does anyone have any idea how to make this work?
>
>
>
> Thanks in advance,
>
> Bud Manz
>
>
>
> *Contact Info*
>
> Address:
>
> 24885 Road 178
> Defiance, Ohio 43512-9331
> Map<http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=24885+Road+178,+Defiance,+OH+43512&sll=37.509726,-95.712891&sspn=29.970263,56.601563&ie=UTF8&ll=41.181529,-84.343801&spn=0.006977,0.013819&z=16&iwloc=A>
>
> Phone:
>
> (419) 770-1960 (cell)
>
> E-mail:
>
> [email protected]
>
> Skype:
>
> manzwebdesigns
>
> Twitter:
>
> @manzwebdesigns <http://www.twitter.com/manzwebdesigns/>
>
> <http://www.linkedin.com/in/manzwebdesigns>
>
> <http://www.linkedin.com/in/manzwebdesigns>
>
> <http://www.linkedin.com/in/manzwebdesigns>
>
> <http://www.linkedin.com/in/manzwebdesigns>
>
>
> _______________________________________________
> Fwlug mailing list
> *[email protected]*
> *http://fortwaynelug.org/mailman/listinfo/fwlug_fortwaynelug.org*
>
> This is a public list and all posts are archived publicly. Please keep this
> in mind before posting. <http://www.linkedin.com/in/manzwebdesigns>
>
> <http://www.linkedin.com/in/manzwebdesigns>
>
> _______________________________________________
> Fwlug mailing list
> [email protected]
> http://fortwaynelug.org/mailman/listinfo/fwlug_fortwaynelug.org
>
> This is a public list and all posts are archived publicly. Please keep this
> in mind before posting.
>
>
_______________________________________________
Fwlug mailing list
[email protected]
http://fortwaynelug.org/mailman/listinfo/fwlug_fortwaynelug.org
This is a public list and all posts are archived publicly. Please keep this in
mind before posting.