BOARDS

planetluc.com discussion board

all about the planetlu.com scripts

You are not logged in.

Announcement

I had to clean the boards due to massive spam. Actually i deleted everything /-one after 1st Oct 2008. It was the only way to get this spam out of the boards. So i'm sorry for all serious users who registered/posted meanwhile.

#1 16-11-2007 00:20:20

GoGraphical
Member
Registered: 04-02-2006
Posts: 13

A new issue has arisen recently

I'm getting this at the end of all emails sent through my formpro_10_no_xml contact page

Code:

6{r    x(rGo ZxG*UꊉX^dx6{]ןN߀

or

6݊{aȧr    Ơx(^rGo ZxGb*'U슉7Xڵڱ^wud^x6{]ןN߀

Any idea what would be causing it?

I've tried replacing the files on the server with the originals that worked fine a few weeks ago incase it was something corrupted. That didn't solve anything. Nothing has been changed on the server other than critical security updates and critical apache patches (apache/red hat box).

Last edited by GoGraphical (16-11-2007 00:21:31)

Offline

 

#2 21-11-2007 22:12:48

GoGraphical
Member
Registered: 04-02-2006
Posts: 13

Re: A new issue has arisen recently

Trying to work around this by using SMPT instead of phpmail but the form sends blank body content.

What do I need to do to make this send via SMTP (I assume it's editing the class.phpmailer.php file, but if I input the username/password/smtp server information I am not sure what needs to be in some of the fields.

Is there any support documentation I can review?

Code:

    /**
     * Sets the Body of the message.  This can be either an HTML or text body.
     * If HTML then run IsHTML(true).
     * @var string
     */
    var $Body = "";

For example, I'm guessing something needs to be inside the "" above, but what exactly?

Thanks for any help!

Last edited by GoGraphical (21-11-2007 22:13:51)

Offline

 

#3 27-11-2007 18:34:44

GoGraphical
Member
Registered: 04-02-2006
Posts: 13

Re: A new issue has arisen recently

Any idea why the form is sending emails like this now? (As well as the top example.)

[removed]


The sys admins from the co-location facility insist that there is nothing wrong with the server (I disagree with them). I was hoping you've perhaps ran into this before and can give some insight into what might be causing emails to either have junk attached to them, or be "uuencoded" like the above appears to be.

Last edited by GoGraphical (05-12-2007 01:47:34)

Offline

 

#4 27-11-2007 19:09:39

GoGraphical
Member
Registered: 04-02-2006
Posts: 13

Re: A new issue has arisen recently

If I try to send using sendmail or smtp this script sends an empty email with the from/to/subject fields completed correctly. What needs to be changed in class.phpmailer.pgp for smtp to actually work?

I've been patiently waiting for a reply to this problem for a while now. Do I need to replace this script with a new one? Originally I liked the ability to attach a file and also have captcha capability but since the script doesn't work anymore it's value is 0. Bought this script a couple times to use on different sites, now both of them are broken...

Offline

 

#5 27-11-2007 22:45:51

sidtheduck
Moderator
From: down by the water
Registered: 14-07-2006
Posts: 515
Website

Re: A new issue has arisen recently

GoGraphical,

I don't actually have a copy of the script, so I can't really help out too much (I just got a copy of the script), but I was wondering the exact parameters you are experiencing.  I'll try to help by diagnosing the symptoms.

1. Does this email encoding happen on all emails or only ones with attached files?

2. If this only happens with attachments, are there certain attachments that work and others that don't?

3. What email client are you using on the receiving end? (Outlook, Eudora, web-based SquirrelMail, etc.)

It could be a problem with the MIME headers that are sent out with attachment emails or it may be that your receiving email can't decode base64 encoding of attachments.  Just trying to narrow down where the problem could be occurring.

Last edited by sidtheduck (28-11-2007 02:40:15)


If it looks like a duck, and quacks like a duck, we have at least to consider the possibility that we have a small aquatic bird of the family anatidae on our hands.                ~Douglas Adams~

Offline

 

#6 28-11-2007 02:48:51

sidtheduck
Moderator
From: down by the water
Registered: 14-07-2006
Posts: 515
Website

Re: A new issue has arisen recently

In response to your other questions, GoGraphical:

GoGraphical wrote:

Any idea why the form is sending emails like this now? (As well as the top example.)

QW5kZXJzb24gQ2hyeXNsZXIgLSBSYWlkZXJzIFNjb3JlIDMgQ29udGVzdCBFbnRyeSAgCioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiogIAoKRGF0ZTogICAg
ICAgICAgICAgICAgICAgICAgMjYuIE5vdiAyMDA3LCAxMjoxOApOYW1lOiAgICAgICAgICAgICAg
ICAgICAgICBjaW5keSAgCkUtTWFpbDogICAgICAgICAgICAgICAgICAgIG1haWx0bzpoYXJyaXNj
QHNoYXcuY2EgIApBZGRyZXNzIDogICAgICAgICAgICAgICAgICAgIApDaXR5OiAgICAgICAgICAg
ICAgICAgICAgICBQcmluY2UgQWxiZXJ0ICAKUHJvdmluY2UvU3RhdGU6ICAgICAgICAgICAgU2Fz
a2F0Y2hld2FuICAKUG9zdGFsL1ppcCBDb2RlOiAgICAgICAgICAgICAKVGVsZXBob25lOiAgICAg
ICAgICAgICAgICAgOTIyLTE4ODkgIApTYWxlc21hbiBNYXkgQ29udGFjdCBNZTogICBObyAgCkkg
YW0gaW50ZXJlc3RlZCBpbjogICAgICAgIE5laXRoZXIgIApIb3cgZGlkIHlvdSBmaW5kIHVzOiAg
ICAgICBSYWRpbyBBZCAgICAKwqDCoAo=

In answer to this question, your code above is encoded using base64 (which is one of several binary-to-text encoding schemes used by MIME headers).  I can translate / decode your email using this online translation tool

GoGraphical wrote:

If I try to send using sendmail or smtp this script sends an empty email with the from/to/subject fields completed correctly. What needs to be changed in class.phpmailer.pgp for smtp to actually work?

What have you been doing to change from PHP mail to sendmail or smtp?

I haven't used / tested the following examples, but they should work based on the PHPMailer documentation.

To use sendmail, you should replace:
$mail->IsMail();
in formpro.php with:
$mail->IsSendmail(); <- or you can use $mail->Mailer = "sendmail";
$mail->Sendmail = "path/to/sendmail"; <- default path is /usr/sbin/sendmail

To use SMTP, you should replace:
$mail->IsMail();
in formpro.php with:
$mail->IsSMTP(); <- or you can use $mail->Mailer = "smtp";
$mail->Host = "smtp.example.com"; <- sets the SMTP host
$mail->Port = ##; <- default is 25 (optional)
$mail->SMTPAuth = true; <- set to 'true' if you want to use username / password (optional)
$mail->Username = "username"; <- set your SMTP username (optional)
$mail->Password = "password"; <- set your SMTP password (optional)

You shouldn't be editing the '/forum/class.htmlmailer.html' file at all really, unless you want to change the default settings.  Again, I haven't tried it, but it should be working if you set up your formpro.php file using the above methods.  If you would like, you can email me directly and I can try to help with your specific installation.

You can also look up the PHPMailer class methods here, class properties here, or the tutorial here for examples of how to use the Mailer class.

Last edited by sidtheduck (28-11-2007 03:10:36)


If it looks like a duck, and quacks like a duck, we have at least to consider the possibility that we have a small aquatic bird of the family anatidae on our hands.                ~Douglas Adams~

Offline

 

#7 29-11-2007 22:06:45

GoGraphical
Member
Registered: 04-02-2006
Posts: 13

Re: A new issue has arisen recently

Hi Sid, any idea why the form would be translating it into base64? I've not configured anything to do that (and in the interim are using an alternate form that doesn't include file attachment capability). I've tried fresh installs of the script (I'm using formpro_10_no_xml which Lukas mailed me for a non php5 server I was using this script on).

If I configure it to use SMTP it sends a blank body with the correct header information.

What I don't understand is how this was working fine for 5 or 6 months and then in early November it started sending encoded emails or emails with junk attached at the end. Hard to track down as there are server critical updates (Redhat/Apache) and there are also Microsoft critical updates around the same period so it's hard to say if it's server-side related or if it is mail client related (I receive readable emails with junk text attached to the end of the text in Outlook 2003, while another machine with Outlook 2005 and another with Windows mail (Vista's outlook express) receive them encoded in base64).

Quite frustrating as this script does everything I want it to do and there is no other good substitute.

Last edited by GoGraphical (29-11-2007 22:12:35)

Offline

 

#8 05-12-2007 01:49:17

GoGraphical
Member
Registered: 04-02-2006
Posts: 13

Re: A new issue has arisen recently

It's not the script it's something on the server where this is being used.

I'm getting the same junk with OSCommerce, Joomla, and other scripts/packages that use sendmail or php mail. So, I doubt there is anything we can resolve here I've had an open ticket with my co-location facility for a week now and am trying to resolve this on their end. Sorry to bug ya! :)

Offline

 

#9 10-12-2007 19:28:40

GoGraphical
Member
Registered: 04-02-2006
Posts: 13

Re: A new issue has arisen recently

I found what the problem was. It's not the script is was a setting in the php.ini that had changed with an update in early November.

If I add the following to the .htaccess for the account using this script to include:

PHP_VALUE mbstring.func_overload 0

All my email woes go away. (This bug was only occuring with Outlook and Outlook Express clients that I am aware of -- the emails read perfectly fine via webmail and other email clients).

It seems that having the setting mbstring.func_overload = 7 in the php.ini file caused additional header information to be included in emails sent by php, this extra information caused outlook and oe to simply not know what to do with the email and either goof it up or display it in base64.

Figured I should post this information in case another user runs into this issue.

(note: if you are using a non UTF-8 or non ISO-8859-1 character set on your site/server you probably want to leave your setting as mbstring.func_overload = 4 globally in your php.ini and just change it to 0 in the .htaccess on sites that are english or Western European character sets.)

Offline

 

#10 10-12-2007 22:19:39

sidtheduck
Moderator
From: down by the water
Registered: 14-07-2006
Posts: 515
Website

Re: A new issue has arisen recently

Thanks for the update, GoGraphical and for the explanation to other users!  I'm glad it's working for you now!  Good luck and let us know if you run into anything else.


If it looks like a duck, and quacks like a duck, we have at least to consider the possibility that we have a small aquatic bird of the family anatidae on our hands.                ~Douglas Adams~

Offline

 

#11 26-01-2010 11:31:02

biancastratfords
New member
Registered: 21-01-2010
Posts: 2

Re: A new issue has arisen recently

As a Newbie, I am always searching online for stuff that can help me. Thank you for your help.


[url=http://www.sonicloans.net/]Payday loans[/url] , [url=http://www.sonicgates.net/]Bad credit loans[/url] and [url=http://www.flyingloans.com/]Personal loans[/url]

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

 
 
© 2003-2010 by planetluc.com · Bachtelstrasse 104 · CH-8400 Winterthur | Support | Login |