This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Mailing List


avatar
LRACMS 0
From: -
Mailing List

When we send out a news item via the mailing list, each person on the list gets two copies instead of one. What is the fix for this problem.

Louis Andrews

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Mailing List
avatar
Administrator
1340
From: Vienna, Austria
Mailing List

There was a small typo. Please try it now.
1 Re: Mailing List
avatar
OP 0
From: -
Mailing List

Done!

Thanks, Louis
1 Re: Mailing List
avatar
Administrator
1340
From: Vienna, Austria
Mailing List

Please add your FTP login to the trouble ticket.
1 Re: Mailing List
avatar
Administrator
1340
From: Vienna, Austria
Mailing List

Please open a trouble ticket with your cadmin and ftp login. I will take a look.
1 Re: Mailing List
avatar
OP 0
From: -
Mailing List

No, still no mail.

- Louis Andrews
1 Re: Mailing List
avatar
Administrator
1340
From: Vienna, Austria
Mailing List

Try to change:

mail($emails[mail_email], $newstitle, $newstext1, $headers);

to:

mail ($emails[mail_email], $newstitle, $newstext1, "From: \"$admin[user_name]\" <$admin[user_email]>");

Does this work?
1 Re: Mailing List
avatar
OP 0
From: -
Mailing List

Yes, received just fine. I put it (email_test.php) in the cadmin subdirectory and when I accessed it with my browser it sent me an email.

- Louis
1 Re: Mailing List
avatar
Administrator
1340
From: Vienna, Austria
Mailing List

Please create a file emailtest.php with the following content:

<?php

$email = "you@yourdomain.com";

echo "Sending test email to $email ...";
mail ($email, "Test Email", "This is a test email", "From: \"$email\" <$email>");
echo "Done";

?>

Replace [email]you@yourdomain.com[/email] with your email address and upload the script to your webspace.

Then run the script and let me know whether you receive the test email.
1 Re: Mailing List
avatar
OP 0
From: -
Mailing List

No, messages still are not being sent.

- Louis Andrews
1 Re: Mailing List
avatar
Administrator
1340
From: Vienna, Austria
Mailing List

Try to replace only the following line of the original code:

$headers .= "MIME-Version: 1.0\r\n";

with:

$headers = "MIME-Version: 1.0\r\n";

Does this work?
1 Re: Mailing List
avatar
OP 0
From: -
Mailing List

Alas, now no messages are send at all. Other suggestion?

- Louis Andrews
1 Re: Mailing List
avatar
Administrator
1340
From: Vienna, Austria
Mailing List

Open cadmin/mod_mail.php in an editor and replace:

    while($emails = mysql_fetch_array($query)) {


$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\r\n";
$headers .= "From: ".$admin[user_name]." <".$admin[user_email].">\r\n";
$headers .= "To: ".$emails[mail_sitetitle]." <".$emails[mail_email].">\r\n";
$headers .= "Reply-To: ".$admin[user_name]." <$admin[user_email]>\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Esselbach Storyteller CMS";

mail($emails[mail_email], $newstitle, $newstext1, $headers);

}


with:
    while($emails = mysql_fetch_array($query)) {


$headers = "From: ".$admin[user_name]." <".$admin[user_email].">\r \n";
$headers .= "To: ".$emails[mail_sitetitle]." <".$emails[mail_email].">\r \n";
$headers .= "Reply-To: ".$admin[user_name]." <$admin[user_email]>\r \n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: Esselbach Storyteller CMS";

$newstitle = stripslashes($newstitle);
$newstext1 = str_replace("\r","",stripslashes($newstext1));

mail($emails[mail_email], $newstitle, $newstext1, $headers);

}
1 Re: Mailing List
avatar
OP 0
From: -
Mailing List

Welcome to Esselbach Storyteller Standard 1.3.1 (released on Thursday 18th of September 2003 11:39:35 AM)

You are running PHP version 4.3.4 and MySQL 4.0.12-log with InnoDB tables

This from the Cadmin page.

Louis Andrews
1 Re: Mailing List
avatar
Administrator
1340
From: Vienna, Austria
Mailing List

Which version is currently installed?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.