[Free Module] SwiftMailer upgrader - version 5.4.1 - Free Modules & Themes - PrestaShop

Jump to content

Photo

[Free Module] SwiftMailer upgrader - version 5.4.1

swiftmailer swift starttls outlook gmail

#1

Posted 12 April 2016 - 10:34 AM

mdekker

    PrestaShop Fanatic

  • Community Moderators
  • 2049 Active Posts

Easily upgrade PrestaShop's SwiftMailer to version 5.4.1 with this module and enable support for STARTTLS (e.g. Gmail, Outlook, etc.)

 

Installation

  • Upload the module through FTP or your Back Office
  • Install the module
  • Check if there are any errors and correct them if necessary
  • Profit!

Compatibility

This module is compatible with versions:

  • 1.6.0.0 - 1.6.1.4
  • 1.5.0.0 - 1.5.6.3

Do not use this module with PrestaShop 1.6.1.5 or higher

 

Requirements

  • PHP >= 5.4

Lower versions could also work, but is not guaranteed.

 

License

Academic Free License 3.0

 

Repository

https://github.com/f...d/swiftupgrader

 

Download

https://github.com/f...iftupgrader.zip



#2

Posted 26 April 2016 - 04:49 AM

namo77

    PrestaShop Newbie

  • Members
  • Pip
  • 0 Active Posts

Hello,

 

What do I use for prestashop version 1.6.1.5 ?



#3

Posted 26 April 2016 - 05:58 AM

mdekker

    PrestaShop Fanatic

  • Community Moderators
  • 2049 Active Posts

The SwiftMailer of 1.6.1.5 is already upgraded, so no need to use the module  :)



#4

Posted 26 April 2016 - 08:54 AM

namo77

    PrestaShop Newbie

  • Members
  • Pip
  • 0 Active Posts

Thanks. But i'm still getting an error referring to swift mailer version. 

 

The current version is @version 3.3.2

 

How do I update this? 



#5

Posted 26 April 2016 - 02:03 PM

mdekker

    PrestaShop Fanatic

  • Community Moderators
  • 2049 Active Posts

You shouldn't update!

 

You should see where the error comes from and try to address is.

The SwiftMailer included with PrestaShop is what should work by default.

 

Do you use some conflicting module, such as a newsletter module? I know that some of them include SwiftMailer and that might break things.



#6

Posted 26 April 2016 - 04:13 PM

namo77

    PrestaShop Newbie

  • Members
  • Pip
  • 0 Active Posts

These are the errors:

 

Fatal error: Cannot redeclare class Swift in /home2/dstore/public_html/tools/swift/Swift.php on line 32
 
Fatal error: Call to undefined method Swift_Message::newInstance() in /home2/dstore/public_html/classes/Mail.php on line 179
 
It's affecting orders, accounts can't be created, password recovery is also affected.
 
Please help. Thank you.


#7

Posted 26 April 2016 - 04:14 PM

mdekker

    PrestaShop Fanatic

  • Community Moderators
  • 2049 Active Posts

That sounds an awful lot like a conflicting module.

 

What external modules do you have? Is there a newsletter one?



#8

Posted 27 April 2016 - 09:27 AM

namo77

    PrestaShop Newbie

  • Members
  • Pip
  • 0 Active Posts

It works fine now. I disabled the mailjet newsletter module.

 

And everything is back to normal. Thank you.



#9

Posted 01 May 2016 - 11:10 AM

ultracom

    PrestaShop Newbie

  • Members
  • Pip
  • 0 Active Posts

I'm newbie, my prestashop version is 1.6.1.4.

May I ask how to upgrade or install this SwiftMailer?

Can advice some step detail?



#10

Posted 11 May 2016 - 02:53 PM

mdekker

    PrestaShop Fanatic

  • Community Moderators
  • 2049 Active Posts

I'm newbie, my prestashop version is 1.6.1.4.

May I ask how to upgrade or install this SwiftMailer?

Can advice some step detail?

Hi @UltraCom,

 

You can just install the module in the usual way, by uploading it through the back office of your store:  http://doc.prestasho... Themes Catalog



#11

Posted 16 May 2016 - 03:03 PM

David Eschmeyer

    Grand Master Presta Pro

  • PrestaShop Team
  • 104 Active Posts

hi @mdekker i tried this on my local site and it seems on the contact form it causes an error 500

[Mon May 16 09:54:44.577963 2016] [:error] [pid 21049] [client 10.1.10.202:43951] PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, class 'Swift_Mime_EmbeddedFile' not found in /var/www/html/1.6.1.4/modules/swiftupgrader/lib/swiftlatest/classes/Swift/EmbeddedFile.php on line 33, referer: http://10.1.10.202/1...me=&theme_font=
 
[Mon May 16 09:54:44.577995 2016] [:error] [pid 21049] [client 10.1.10.202:43951] PHP Fatal error:  Call to a member function has() on a non-object in /var/www/html/1.6.1.4/modules/swiftupgrader/lib/swiftlatest/classes/Swift/Mime/SimpleMimeEntity.php on line 615, referer: http://10.1.10.202/1...me=&theme_font=
 
You may want to take a look at that... (got that from tailing my logfile)


#12

Posted 16 May 2016 - 03:15 PM

mdekker

    PrestaShop Fanatic

  • Community Moderators
  • 2049 Active Posts

Thanks. It's caused by using (old) dynamic class names. Couldn't detect them all with PhpStorm.

 

I think that it should be fixed with this update: https://github.com/f...iftupgrader.zip



#13

Posted 16 May 2016 - 08:41 PM

realloyalist

    PrestaShop Newbie

  • Members
  • Pip
  • 1 Active Posts

If you can you should update the download link on the original post to be for version 1.0.2. I downloaded and installed the 1.0.1 without seeing the download for 1.0.2. After installing the 1.0.1 upgrade module my store stopped receiving the return statuses from PayPal. I have Prestashop 1.6.4 and use the built-in PayPal USA module to handle PayPal Express payments and also use the PayPal Pro paid module to handle direct credit card entry. After installing the upgrade module orders that came in had no status and Prestashop showed no payment though I was able to confirm payment through PayPal. After uninstalling the upgrade module orders started working correctly again. The only errors I could find were the same as what David Eschmeyer had reported. I don't know if I still would have issues if I had download 1.0.2 or if it was because of the issue in 1.0.1. I just thought I would report this in case anyone else experiences it. I'm not going to try installing 1.0.2 of the upgrade module, I'll just wait until Prestashop release 1.7 or at least a more worthwhile upgrade before updating.

Thank you.



#14

Posted 16 May 2016 - 08:43 PM

mdekker

    PrestaShop Fanatic

  • Community Moderators
  • 2049 Active Posts

Thanks for the warning. I thought that I had updated it to 1.0.2, but apparently only the link text has changed, not the actual link itself. Should be fine now.



#15

Posted 26 May 2016 - 02:39 PM

Mailjet team

    PrestaShop Newbie

  • Members
  • Pip
  • 0 Active Posts

It works fine now. I disabled the mailjet newsletter module.

 

And everything is back to normal. Thank you.

Hello,

 

We have released a new version of our module that is compatible with PrestaShop 1.6.1.5 (with the new paths for SWIFT), you could download it from here:

 

https://github.com/m...et-plugin-apiv3

 

Regards,

 

Mailjet team 

 



#16

Posted 04 July 2016 - 04:13 PM

scardovi

    PrestaShop Enthusiast

  • Members
  • PipPip
  • 264 Active Posts

I've a problem:

 

if I use the suggested mail() PHP function I can send mail to everyone excluded my scardovi.com domain (google apps mail server).

 

il I use the SMTP with google settings I receive "Failed to authenticate on SMTP server with username "username@scardovi.com" using 2 possible authenticators" error and so I can't send mail to anyone.

 

What can I do?


E-commerciante dal 1997

attualmente tramite Prestashop su http://store.scardovi.com


#17

Posted 05 July 2016 - 01:27 PM

David Eschmeyer

    Grand Master Presta Pro

  • PrestaShop Team
  • 104 Active Posts

I've a problem:

 

if I use the suggested mail() PHP function I can send mail to everyone excluded my scardovi.com domain (google apps mail server).

 

il I use the SMTP with google settings I receive "Failed to authenticate on SMTP server with username "username@scardovi.com" using 2 possible authenticators" error and so I can't send mail to anyone.

 

What can I do?

 

do you have 2 step authentication enabled?  

 

You may want to look at https://support.goog...r/6010255?hl=en

https://www.google.c.../lesssecureapps



#18

Posted 26 August 2016 - 09:28 AM

Bonjovi67

    PrestaShop Newbie

  • Members
  • Pip
  • 22 Active Posts

Hi

 

I have installed this swiftmailer upgrade module on my prestashop 1.6.1.4 and everything is working fine except a modification, to send a email copy to an extra email adress when a order is shipped, that i made to my classes/mail.php from this thread https://www.prestash...-shipped-order/

 

I have checked the classes/mail.php file and nothing has changed in this file.

 

Anyone who know why the modification has stops working and how i can send the extra email again ?

 

Best regards John

 

 



#19

Posted 26 August 2016 - 04:43 PM

mdekker

    PrestaShop Fanatic

  • Community Moderators
  • 2049 Active Posts

You'll have to modify the override at /override/classes/Mail.php. Never edit Core files directly! You will no longer be able to update PrestaShop. 



#20

Posted 31 August 2016 - 07:04 PM

jksynergyworks

    PrestaShop Newbie

  • Members
  • Pip
  • 8 Active Posts

Hi mdekker, thanks for the free swiftmailer upgrade module. I managed to setup the module and sent a message from the BO. But when I try to use my contact form to send a message, it leads to a non-existent page. Would you be able to pinpoint the error for me? Thanks in advance for your help.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cookies help us deliver our services. By using our services, you agree to use our cookies.     Learn more