Contact Form 7 Incompatibility

330 views
Skip to first unread message

Bradley

unread,
Oct 27, 2010, 1:40:29 PM10/27/10
to MailPress
Hi All-

Just wanted to make you aware of the following small thread:

http://wordpress.org/support/topic/plugin-contact-form-7-cf7-and-mailpress-still-conflict

I've seen problems with other plugins, where the "From" address must
be the same as your SMTP authentication username, though that's not
really a bug, it makes sense. This is not that issue. Hopefully it
ncan be resolved in the next release.

Best,

- Bradley

andré renaut

unread,
Oct 27, 2010, 3:41:47 PM10/27/10
to mail...@googlegroups.com
Thank

any body using the MailPress Form add-on ?

2010/10/27 Bradley <bh8...@gmail.com>
--
=== Please Donate ! https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2erenaut%40gmail%2ecom&lc=US&item_name=MailPress&item_number=gg&amount=5%2e00&currency_code=EUR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest ===

You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en



--
Pensez à l'environnement avant d'imprimer ce message.
Please, think about the environment before printing this message.
Message has been deleted

andré renaut

unread,
Oct 28, 2010, 9:43:43 AM10/28/10
to mail...@googlegroups.com
as far as i see the incompatibility resides in the fact that mailpress wp-mail do not support attachements.
(add-on MailPress_form does ...)

The following informations are retrieved from an 'input type=file' and wordpress file upload api :
* file name
* mime_type
* file
* fullpath
* guid
apparently, CF looses these informations (add-on MailPress_form do not ...attachments appears in mail with their mime_type)

in MailPress_form all these info are kept so files appears in mails with there correct mime_types !

As far as i see in wordpress wp-mail, the attachements provided is an array of files (full path i presume)

 456      if ( !empty( $attachments ) ) {
 457          foreach ( $attachments as $attachment ) {
 458              $phpmailer->AddAttachment($attachment);
 459          }
 460      }

AddAttachement in phpmailer sets a lot of default values for file attributes (add-on MailPress_form do not)

1124    function AddAttachment($path, $name = '', $encoding = 'base64', $type = 'application/octet-stream') {
1125      if(!@is_file($path)) {
1126        $this->SetError($this->Lang('file_access') . $path);
1127        return false;
1128      }
1129 
1130      $filename = basename($path);
1131      if($name == '') {
1132        $name = $filename;
1133      }
1134 
1135      $cur = count($this->attachment);
1136      $this->attachment[$cur][0] = $path;
1137      $this->attachment[$cur][1] = $filename;
1138      $this->attachment[$cur][2] = $name;
1139      $this->attachment[$cur][3] = $encoding;
1140      $this->attachment[$cur][4] = $type;
1141      $this->attachment[$cur][5] = false; // isStringAttachment
1142      $this->attachment[$cur][6] = 'attachment';
1143      $this->attachment[$cur][7] = 0;
1144 
1145      return true;
1146    }

so in version to come mailpress wp-mail will take $attachements as an array of files (fullpath)


andré renaut

unread,
Oct 28, 2010, 10:23:51 AM10/28/10
to mail...@googlegroups.com
if anyone wants to make some tests with CF

* rename mailpress/mp-includes/wp_pluggable.3.0.php in wp_pluggable.3.0_old.php
* copy attached file in mailpress/mp-includes/
* make some tests

please report on this forum !

thxs



2010/10/28 andré renaut <andre....@gmail.com>
wp_pluggable.3.0.php

Bradley

unread,
Oct 28, 2010, 10:50:31 AM10/28/10
to MailPress
Should this only apply if the CF7 form uses file upload? Mine does
not… its just a simple input type="text" and textarea field.

- Bradley

On Oct 28, 10:23 am, andré renaut <andre.ren...@gmail.com> wrote:
> if anyone wants to make some tests with CF
>
> * rename mailpress/mp-includes/wp_pluggable.3.0.php in
> wp_pluggable.3.0_old.php
> * copy attached file in mailpress/mp-includes/
> * make some tests
>
> please report on this forum !
>
> thxs
>
> 2010/10/28 andré renaut <andre.ren...@gmail.com>
>  wp_pluggable.3.0.php
> 27KViewDownload

andré renaut

unread,
Oct 28, 2010, 11:04:06 AM10/28/10
to mail...@googlegroups.com
Should this only apply if the CF7 form uses file upload?

yes

Do you have other conflicts between cf and mailpress ?

2010/10/28 Bradley <bh8...@gmail.com>

--
=== Please Donate ! https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2erenaut%40gmail%2ecom&lc=US&item_name=MailPress&item_number=gg&amount=5%2e00&currency_code=EUR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest ===

You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en

Graham Stoney

unread,
Oct 30, 2010, 6:39:14 PM10/30/10
to MailPress
What is the advantage of using MailPress wp_mail? When is it needed? I
haven't ever enabled it on my sites.

On Oct 29, 12:43 am, andré renaut <andre.ren...@gmail.com> wrote:
> as far as i see the incompatibility resides in the fact that mailpress
> wp-mail do not support attachements.
> of files (fullpath)

andré renaut

unread,
Oct 31, 2010, 7:14:16 AM10/31/10
to mail...@googlegroups.com
MailPress wp_mail allows you to redesign the wordpress mails

see mailpress/mp-includes/pluggable.php

2010/10/31 Graham Stoney <lqmm...@trashmail.net>

--
=== Please Donate ! https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2erenaut%40gmail%2ecom&lc=US&item_name=MailPress&item_number=gg&amount=5%2e00&currency_code=EUR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest ===

You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en
Reply all
Reply to author
Forward
0 new messages