maillog-plugin-public's People
Forkers
dheiamaillog-plugin-public's Issues
Syntax error in Yaml.php line 43
Hi,
I just bought the maillog software but there is an error when trying to sync the project on October CMS v3.
In Yaml.php line 43:
A syntax error was detected in /var/www/vhosts/domain.com/httpdocs/plugins/suresoftware/maillog/updates/version.yaml. The string "!!! 'Added in automatic mail log purging.
This will automatically purge mail logs that are 30 days or older by default'" could not be parsed as it uses an unsupported built-in tag at line 15 (near "2.0.0: !!! 'Added in aut
omatic mail log purging. This will automatically purge mail logs that are 30 days or older by default'") at line 43 (near "/var/www/vhosts/domain.com/httpdocs/vendor/octob
er/rain/src/Parse/Yaml.php").
It is exactly the same error as was present in the Maillog by SureSoftware that is since discontinued - that is the one I'm migrating from. It's clear that this plugin is a fork from their repository, which is fine, but could you then kindly resolve the issues?
Incompatible with Campaign Manager plugin
Hi,
I'm having trouble sending out mails with the Campaign Manager by Responsiv Internet.
I'm getting the following error. It seems like "template" contains the entire HTML-template of the campaign manager. But the field template is a varchar in your table, so I guess thats why it's getting triggered.
Below is the entire error message, so you can review.
Sending to [email protected] failed with SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'template' at row 1 (SQL: insert into `renatio_maillog_logs` (`content_html`, `subject`, `to`, `cc`, `bcc`, `from`, `ip_address`, `template`, `attachments`, `hash`, `updated_at`, `created_at`) values (<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="nl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>What's Up</title>
<style>
a {
color: #394274;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body style="padding:0px;margin:0px;background-color:#E8E8EA">
<!-- Bg -->
<table cellspacing="0" cellpadding="0" border="0" width="100%" style="background-color: #E8E8EA; background-image: linear-gradient(90deg, rgba(238,241,242,1) 0%, rgba(214,217,219,1) 100%);">
<tr>
<td>
<!-- Container -->
<table cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td width="700" style="padding-top: 30px; padding-bottom: 50px;">
<!-- Content -->
<table cellspacing="0" cellpadding="0" border="0" align="center" width="660" style="width:660px; text-align: center;">
<tr>
<td>
<div style="font-size:12px;color:#394274;font-family: Helvetica, Arial, sans-serif;">
<div style="padding-top:30px">
<h1 style="font-size:30px;color:#394274;padding:0;margin:0;">6 juni 2023</h1>
<h1 style="font-size:24px;color:#394274;padding:0;margin:0;">Elisabeth Center Antwerpen</h1>
</div>
</div>
</td>
</tr>
</table>
<!-- Header -->
<table cellspacing="0" cellpadding="0" border="0" align="center" width="660" style="width:660px;">
<tr>
<td>
<br/>
<img src="https://domain.be/storage/app/uploads/public/63e/d15/184/63ed151842b80182060171.png" alt="Company NV" width="660" height="310" />
</td>
</tr>
</table>
<br/>
<!-- Content -->
<table cellspacing="0" cellpadding="0" border="0" align="center" width="660"
style="width:660px; text-align: center;">
<tr>
<td>
<div style="font-size:12px;color:#000000;font-family:Helvetica, Arial, sans-serif;">
<div style="padding-top: 15px">
<h3 style="font-size:21px;font-weight:normal;color:#ED1849;padding:0;margin:0">
8 sessies in de voor en namiddag
</h3>
<div style="line-height:150%; font-size:14px">
</div>
</div>
<br/>
</div>
</td>
</tr>
</table>
<!-- Button -->
<table cellspacing="0" cellpadding="0" border="0" align="center" width="660" bgcolor="#DF3B86" align="center" valign="middle" style="border-radius: 10px; overflow: hidden; width: 660px; font-family: Arial,Helvetica,sans-serif; font-size: 16px; color: #ffffff; line-height:18px;">
<tr>
<td bgcolor="#DF3B86" height="50" width="100%" style="text-align: center; ">
<a href="https://mytheme.vlaanderen" target="_blank" style="text-align: center; padding: 0 20px; text-decoration: none; color: #ffffff; font-weight: bold; display: block;">Schrijf je in!</a>
</td>
</tr>
</table>
<br/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td bgcolor="#1C9EDA">
<table cellspacing="0" cellpadding="0" border="0" align="center" style="background-color: #1C9EDA; background-image: url('https://domain.be/themes/mytheme/assets/images/bg-footer.png'); background-position: bottom center; background-size: cover; background-repeat: no-repeat;">
<tr>
<td width="700" height="43" style="text-align:center; padding-top: 40px; padding-bottom: 40px;">
<div style="color:#FFFFFF;font-weight:normal;font-size:12px;font-family:Arial, Helvetica, sans-serif;padding-bottom:5px;">
Je ontvangt deze mail omdat je deel uitmaakt van het klantenbestand van Company NV, of omdat je e-mailadres opgenomen is in een openbare lijst.
<br/><br/>
© Alle rechten voorbehouden
<br/><br/>
Company<br/>
Street 3<br/>
1000 Brussels
<br/><br/>
Liever geen mails meer ontvangen?
<br/>
<a href="https://domain.be/campaign/alt-message/MyE0IWYwNGE4Yzk4NzA4YjE5NmUzMTVlNGRhOGRkODA1ODZh?unsubscribe=1" style="color: #FFF; text-decoration: underline;">Schrijf je uit</a>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<img src="https://domain.be/campaign/alt-message/MyE0IWYwNGE4Yzk4NzA4YjE5NmUzMTVlNGRhOGRkODA1ODZh.png" alt="" />
<img src="https://domain.be/campaign/alt-message/MyE0IWYwNGE4Yzk4NzA4YjE5NmUzMTVlNGRhOGRkODA1ODZh.png" alt="" />
</body>
</html>, Jij komt toch ook?, [email protected], , , "What's Up" <[email protected]>, 84.196.100.222, <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="nl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>What's Up</title>
<style>
a {
color: #394274;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body style="padding:0px;margin:0px;background-color:#E8E8EA">
<!-- Bg -->
<table cellspacing="0" cellpadding="0" border="0" width="100%" style="background-color: #E8E8EA; background-image: linear-gradient(90deg, rgba(238,241,242,1) 0%, rgba(214,217,219,1) 100%);">
<tr>
<td>
<!-- Container -->
<table cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td width="700" style="padding-top: 30px; padding-bottom: 50px;">
<!-- Content -->
<table cellspacing="0" cellpadding="0" border="0" align="center" width="660" style="width:660px; text-align: center;">
<tr>
<td>
<div style="font-size:12px;color:#394274;font-family: Helvetica, Arial, sans-serif;">
<div style="padding-top:30px">
<h1 style="font-size:30px;color:#394274;padding:0;margin:0;">6 juni 2023</h1>
<h1 style="font-size:24px;color:#394274;padding:0;margin:0;">Elisabeth Center Antwerpen</h1>
</div>
</div>
</td>
</tr>
</table>
<!-- Header -->
<table cellspacing="0" cellpadding="0" border="0" align="center" width="660" style="width:660px;">
<tr>
<td>
<br/>
<img src="https://domain.be/storage/app/uploads/public/63e/d15/184/63ed151842b80182060171.png" alt="Company NV" width="660" height="310" />
</td>
</tr>
</table>
<br/>
<!-- Content -->
<table cellspacing="0" cellpadding="0" border="0" align="center" width="660"
style="width:660px; text-align: center;">
<tr>
<td>
<div style="font-size:12px;color:#000000;font-family:Helvetica, Arial, sans-serif;">
<div style="padding-top: 15px">
<h3 style="font-size:21px;font-weight:normal;color:#ED1849;padding:0;margin:0">
8 sessies in de voor en namiddag
</h3>
<div style="line-height:150%; font-size:14px">
</div>
</div>
<br/>
</div>
</td>
</tr>
</table>
<!-- Button -->
<table cellspacing="0" cellpadding="0" border="0" align="center" width="660" bgcolor="#DF3B86" align="center" valign="middle" style="border-radius: 10px; overflow: hidden; width: 660px; font-family: Arial,Helvetica,sans-serif; font-size: 16px; color: #ffffff; line-height:18px;">
<tr>
<td bgcolor="#DF3B86" height="50" width="100%" style="text-align: center; ">
<a href="https://mytheme.vlaanderen" target="_blank" style="text-align: center; padding: 0 20px; text-decoration: none; color: #ffffff; font-weight: bold; display: block;">Schrijf je in!</a>
</td>
</tr>
</table>
<br/>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td bgcolor="#1C9EDA">
<table cellspacing="0" cellpadding="0" border="0" align="center" style="background-color: #1C9EDA; background-image: url('https://domain.be/themes/mytheme/assets/images/bg-footer.png'); background-position: bottom center; background-size: cover; background-repeat: no-repeat;">
<tr>
<td width="700" height="43" style="text-align:center; padding-top: 40px; padding-bottom: 40px;">
<div style="color:#FFFFFF;font-weight:normal;font-size:12px;font-family:Arial, Helvetica, sans-serif;padding-bottom:5px;">
Je ontvangt deze mail omdat je deel uitmaakt van het klantenbestand van Company NV, of omdat je e-mailadres opgenomen is in een openbare lijst.
<br/><br/>
© Alle rechten voorbehouden
<br/><br/>
Company<br/>
Street 3<br/>
1000 Brussels
<br/><br/>
Liever geen mails meer ontvangen?
<br/>
<a href="https://domain.be/campaign/alt-message/MyE0IWYwNGE4Yzk4NzA4YjE5NmUzMTVlNGRhOGRkODA1ODZh?unsubscribe=1" style="color: #FFF; text-decoration: underline;">Schrijf je uit</a>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<img src="https://domain.be/campaign/alt-message/MyE0IWYwNGE4Yzk4NzA4YjE5NmUzMTVlNGRhOGRkODA1ODZh.png" alt="" />
<img src="https://domain.be/campaign/alt-message/MyE0IWYwNGE4Yzk4NzA4YjE5NmUzMTVlNGRhOGRkODA1ODZh.png" alt="" />
</body>
</html>, ?, 159854cd-8eed-4a64-8fac-81b3d5286bd8, 2023-02-15 22:27:53, 2023-02-15 22:27:53))
I guess the quick answer would be to transform the template column into a longtext column... I tried this, and this seems to work.
But I doubt that this would be efficient...
Do you have any suggestions of a possible solution?
It Doesn't Work when Sending Email with Attachment
Hi. I got an error when sending email with attachment. Here is the stack trace.
Error: Call to undefined method Symfony\Component\Mime\Part\DataPart::getFilename() in /var/www/html/plugins/renatio/maillog/listeners/LogEmail.php:50
Stack trace:
#0 [internal function]: Renatio\MailLog\Listeners\LogEmail->Renatio\MailLog\Listeners\{closure}(Object(Symfony\Component\Mime\Part\DataPart), 0)
#1 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Arr.php(560): array_map(Object(Closure), Array, Array)
#2 /var/www/html/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(768): Illuminate\Support\Arr::map(Array, Object(Closure))
#3 /var/www/html/plugins/renatio/maillog/listeners/LogEmail.php(50): Illuminate\Support\Collection->map(Object(Closure))
#4 /var/www/html/plugins/renatio/maillog/listeners/LogEmail.php(26): Renatio\MailLog\Listeners\LogEmail->getAttachments(Object(Illuminate\Mail\Message))
#5 /var/www/html/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(441): Renatio\MailLog\Listeners\LogEmail->handle(Object(October\Rain\Mail\Mailer), 'october.templat...', Object(Illuminate\Mail\Message))
#6 /var/www/html/vendor/laravel/framework/src/Illuminate/Events/Dispatcher.php(249): Illuminate\Events\Dispatcher->Illuminate\Events\{closure}('mailer.prepareS...', Array)
#7 /var/www/html/vendor/october/rain/src/Events/PriorityDispatcher.php(94): Illuminate\Events\Dispatcher->dispatch('mailer.prepareS...', Array, true)
#8 /var/www/html/vendor/october/rain/src/Events/PriorityDispatcher.php(61): October\Rain\Events\PriorityDispatcher->fireEvent('mailer.prepareS...', Array, true)
#9 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): October\Rain\Events\PriorityDispatcher->fire('mailer.prepareS...', Array, true)
#10 /var/www/html/vendor/october/rain/src/Mail/Mailer.php(113): Illuminate\Support\Facades\Facade::__callStatic('fire', Array)
#11 /var/www/html/vendor/laravel/framework/src/Illuminate/Mail/MailManager.php(554): October\Rain\Mail\Mailer->send('october.templat...', Array, Object(Closure))
#12 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): Illuminate\Mail\MailManager->__call('send', Array)
...
Additional information:
I use the attachData()
method to attach a calendar file.
Plugin Version: 1.0.4
October Build: 3.2.70
PHP Version: 8.0
Filesystem Driver: AWS S3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.