, Guest!
Already a Member? Login or Register.

Menu



Showcase


Due to the volume of spam happening on our forums, posting is now restricted to verified members only.  If you're not verified, drop us a note with your username.

Home > FlexCMS Support Forum > Recent Messages

FlexCMS Support Forum


Recent Messages

Previous Page Next Page

User Help > General Support Requests > Sending Newsletter Error (Go To Message)
DCSun
 
November 6, 2009 @ 7:01pm
We've never had this problem before, and that code has been the same in there for a couple years now, so at the risk of blaming the hosting company it seems as if maybe GoDaddy is blocking sending mail with certain content in it (HTML perhaps?). They are notorious for restricting their systems in very strange ways.

Try this and see what happens:

Code

$MessageHeaders .= 'MIME-Version: 1.0' . "\r\n";
$MessageHeaders .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

ini_set('sendmail_from', $Settings['ContactEmail']);
if (mail($row4['Email'], $StrippedTitle, $HTMLMessage, $MessageHeaders)) {


or


Code

$MessageHeaders .= 'MIME-Version: 1.0' . "\r\n";
$MessageHeaders .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

if (mail($row4['Email'], $StrippedTitle, $HTMLMessage, $MessageHeaders, '-f'.$Settings['ContactEmail'])) {



The headers definitely need to be there, that's what tells it to display the message as HTML instead of plain text.
User Help > General Support Requests > Sending Newsletter Error (Go To Message)
andrewm
 
November 6, 2009 @ 6:05pm
it has something to do with the message headers. if i remove all the headers:
$MessageHeaders .= "MIME-Version: 1.0\r\n";
$MessageHeaders .= "Content-Type: multipart/alternative;\r\n boundary=\"".$BoundaryID."\"\r\n\r\n";
$MessageHeaders .= $PlainTextMessage;
$MessageHeaders .= "--".$BoundaryID."\r\n".
"Content-Type: text/plain; charset=ISO-8859-1\r\n".
"Content-Transfer-Encoding: base64\r\n\r\n";
$MessageHeaders .= chunk_split(base64_encode($PlainTextMessage));
$MessageHeaders .= "--".$BoundaryID."\r\n".
"Content-Type: text/html; charset=ISO-8859-1\r\n".
"Content-Transfer-Encoding: base64\r\n\r\n";
$MessageHeaders .= chunk_split(base64_encode($HTMLMessage));

and replace with:

$MessageHeaders .= $HTMLMessage

it sends the email with correct Title and From fields but doesn't format the HTML correctly in the email so you just see the HTML code. Does this help?
User Help > General Support Requests > Sending Newsletter Error (Go To Message)
DCSun
 
November 6, 2009 @ 6:03pm
How about this:


Code

ini_set('sendmail_from', $Settings['ContactEmail']);
if (mail($row4['Email'], $StrippedTitle, "", $MessageHeaders)) {

or

Code

ini_set('sendmail_from', $Settings['ContactEmail']);
if (mail($row4['Email'], $StrippedTitle, $PlainTextMessage, $MessageHeaders)) {


The contact form is much more basic, it doesn't use the HTML format and headers, so it's only a small comparison.
User Help > General Support Requests > Sending Newsletter Error (Go To Message)
andrewm
 
November 6, 2009 @ 5:46pm
tried that still no go. the contact form works perfect by the way.
User Help > General Support Requests > Sending Newsletter Error (Go To Message)
DCSun
 
November 4, 2009 @ 6:55pm
Ya that makes sense since the parameters aren't in the right places anymore. What used to be the message is now being filled with the headers that are usually hidden.

Instead of removing the "" try replacing it with $PlainTextMessage
User Help > General Support Requests > Sending Newsletter Error (Go To Message)
andrewm
 
November 4, 2009 @ 6:31pm
David,
Found part of the error:
if (mail($row4['Email'], $StrippedTitle, "", $MessageHeaders, '-f'.$Settings['ContactEmail'])) {

Remove the "", and the emails will send:

if (mail($row4['Email'], $StrippedTitle, $MessageHeaders, '-f'.$Settings['ContactEmail'])) {

only thing now is when i receive the email it is telling me I can't receive html emails
User Help > General Support Requests > Sending Newsletter Error (Go To Message)
DCSun
 
November 4, 2009 @ 6:11pm
You can also try adding this before the mail line:
Code

ini_set('sendmail_from', $Settings['ContactEmail']);


David
User Help > General Support Requests > Sending Newsletter Error (Go To Message)
DCSun
 
November 4, 2009 @ 6:05pm
Everything looks okay there, I just wasn't seeing the other parts with the forum removing what it thought were HTML tags.

What does your contact form do when you submit it?


David
User Help > General Support Requests > Sending Newsletter Error (Go To Message)
andrewm
 
November 4, 2009 @ 5:53pm
David,
I am using a shared linux hosting account at godaddy. I do have an email address in the site preferences. Here is the output:

<br><br>Address:andrew.mcghee@loganinsurance.com<br>Title:testing newsletter title<br>Message:From: "Logan Ohio Rotary Club" <support@loganinsurance.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="FlexCMS4af204e742059"

This message was sent in HTML format, and your email client appears to be unable to display HTML emails. To view this message, please visit the archived version on our website: http://www.loganohiorotary.org/index.php/newsletter/messages.html



Logan Ohio Rotary Club
http://www.loganohiorotary.org


You have received the Logan Ohio Rotary Club newsletter because you are a member at our website or have requested your name be added to our subscription list. If you wish to be removed from this mailing list, please click (or cut/paste into your web browser) this link:
http://www.loganohiorotary.org/index.php/newsletter/unsubscribe_confirm/andrew.mcghee@loganinsurance.com/Z0OI69GDPBIW621VS6UL

--FlexCMS4af204e742059
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: base64

VGhpcyBtZXNzYWdlIHdhcyBzZW50IGluIEhUTUwgZm9ybWF0LCBhbmQgeW91ciBlbWFpbCBjbGll
bnQgYXBwZWFycyB0byBiZSB1bmFibGUgdG8gZGlzcGxheSBIVE1MIGVtYWlscy4gIFRvIHZpZXcg
dGhpcyBtZXNzYWdlLCBwbGVhc2UgdmlzaXQgdGhlIGFyY2hpdmVkIHZlcnNpb24gb24gb3VyIHdl
YnNpdGU6IGh0dHA6Ly93d3cubG9nYW5vaGlvcm90YXJ5Lm9yZy9pbmRleC5waHAvbmV3c2xldHRl
ci9tZXNzYWdlcy5odG1sCgoKCkxvZ2FuIE9oaW8gUm90YXJ5IENsdWIKaHR0cDovL3d3dy5sb2dh
bm9oaW9yb3Rhcnkub3JnCgoKWW91IGhhdmUgcmVjZWl2ZWQgdGhlIExvZ2FuIE9oaW8gUm90YXJ5
IENsdWIgbmV3c2xldHRlciBiZWNhdXNlIHlvdSBhcmUgYSBtZW1iZXIgYXQgb3VyIHdlYnNpdGUg
b3IgaGF2ZSByZXF1ZXN0ZWQgeW91ciBuYW1lIGJlIGFkZGVkIHRvIG91ciBzdWJzY3JpcHRpb24g
bGlzdC4gSWYgeW91IHdpc2ggdG8gYmUgcmVtb3Zl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mxvZ2Fub2hpb3JvdGFyeS5vcmcvaW5kZXgucGhwL25ld3NsZXR0ZXIvdW5zdWJzY3JpYmVfY29u
ZmlybS9hbmRyZXcubWNnaGVlQGxvZ2FuaW5zdXJhbmNlLmNvbS9aME9JNjlHRFBCSVc2MjFWUzZV
TCIgdGFyZ2V0PSJfYmxhbmsiPmh0dHA6Ly93d3cubG9nYW5vaGlvcm90YXJ5Lm9yZy9pbmRleC5w
aHAvbmV3c2xldHRlci91bnN1YnNjcmliZV9jb25maXJtL2FuZHJldy5tY2doZWVAbG9nYW5pbnN1
cmFuY2UuY29tL1owT0k2OUdEUEJJVzYyMVZTNlVMPC9hPjxicj48YnI+PC9mb250PjwvZm9udD4=
<br><br><br />
<b>Warning</b>: mail(): Bad parameters to mail() function, mail not sent. in <b>/home/content/t/h/e/thecyberhost/html/rotary/inc-nl-admin-newsletter_sendfinal.php</b> on line <b>105</b><br />
<br><br>Address:valeryjunge@hotmail.com<br>Title:testing newsletter title<br>Message:From: "Logan Ohio Rotary Club" <support@loganinsurance.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="FlexCMS4af204e749820"

This message was sent in HTML format, and your email client appears to be unable to display HTML emails. To view this message, please visit the archived version on our website: http://www.loganohiorotary.org/index.php/newsletter/messages.html



Logan Ohio Rotary Club
http://www.loganohiorotary.org
User Help > General Support Requests > Sending Newsletter Error (Go To Message)
DCSun
 
November 4, 2009 @ 3:30pm
Andrew,

Do you have an email address entered in Modify Site Preferences > Site Email Address ? If you do please post that output again but using the Code function of the forum, otherwise parts of it get removed.

Can you give some more information about where the site is hosted (your own computer, dedicated server, shared hosting, etc)?


David

Previous Page Next Page





Try & Buy FeedForAll - Easy to use RSS Feed Creator - great for iTunes users!

MEMBERS




All Contents, Code, Scripts and Technologies Copyright 2003-2009 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.08647 seconds.
 
Management Login

Powered By FlexCMS
Powered By FlexCMS