email – Is there some way to reliably strip away all “quoted text” parts of both plaintext and HTML-based e-mails?

I’m trying to interpret responses from people via e-mail.

If this had been the year 1985 or something, it would be easy: I would just strip any line beginning with > , and that would be it.

However, the year is 2020 and e-mail is an absolute mess of multiple layers of madness. For one thing, many e-mails aren’t plaintext at all, but instead use HTML formatting, and I very strongly doubt that these consistently use <blockquote>s for quotes. I fear that there are numerous different styles of quotes and markup used for HTML e-mail quotes.

Even plaintext e-mails may not consistently use > quotes.

This immediately strikes me as something I do not wish to sit and attempt to code on my own. Is there some existing, reliable PHP library/function for this task?

I already use MailMimeParse, but it doesn’t appear to have this feature. Its job appears to be all about parsing the MIME blobs into plaintext/HTML bodies — not to do anything further with these, once properly extracted.

To make it crystal clear: I’m trying to turn this:

I shall have the business proposal ready tomorrow.
OK. Great.

Into:

OK. Great.

And:

<whateverunknownmarkup>I shall have the business proposal ready tomorrow.</whateverunknownmarkup>

OK. Great.

Into:

OK. Great.

Of course, those are just basic examples. These can be nested in many levels, etc.

I don’t know how the most popular e-mail clients and e-mail services do this, but it feels like yet another task which has been solved in private a million times but never released to the public.

I will verify your 10000 emails for $3

I will verify your 10000 emails

Hi, I will verify all your emails and provide you all verified, and unverified emails differently on an Excel sheet.

I’m an expert on it. I have premium tools bought for verifying emails. So, I ensure you best service and your satisfaction guarantee.

I will verify and provide the result within your timeframe.

Kind Regards!

.

formularios – Envío emails smtp gmail

tengo una duda:

en xamarin tengo creado un método en el evento clicked para enviar emails a través de un formulario, puedo enviar emails sin problemas desde mi equipo y un móvil de confianza, en gmail tengo activado lo de las aplicaciones poco seguras pero si intento enviar esos formularios por email desde otro dispositivo ya que genere una apk para que amigos y familiares lo probasen, no lo envía, gmail bloquea ese envío, ¿alguien me podría decir porque pasa eso?

Gracias, saludos!

magento2 – How to Send a Copy of Order Confirmation Emails to Dynamic EmailId in Magento 2

I have a made custom module of the sales rep. They can create an order for a customer. When sales rep place order at that time order confirmation email copy sent to assign sales reps in order.

I have store sales rep email id in Quote & order both tables. If any query please let me know. Please any can help me

Note: The code is working on the local server. But In an enterprise, it’s not working.

  1. create an event for a set variable. create event.xml

     <event name="email_order_set_template_vars_before">
         <observer name="set_email_po_order" instance="VendorModulenameObserverEmailOrderSetTemplateVarsBefore" />
     </event>
    
  2. set variable dynamic from the get order table

     <?php
     namespace VendorModulenameObserver;
    
     use MagentoFrameworkEventObserver;
     use MagentoFrameworkEventObserverInterface;
    
     class EmailOrderSetTemplateVarsBefore implements ObserverInterface {
    
     private $orderEmail;
     protected $scopeConfig;
    
     public function __construct(
         VendorModulenameModelOrderEmail $orderEmail,
         VendorModulenameModelSalesrepFactory $salesrepData,
         MagentoFrameworkAppConfigScopeConfigInterface $scopeConfig
     ){
         $this->orderEmail = $orderEmail;
         $this->_salesrepData = $salesrepData;
         $this->scopeConfig = $scopeConfig;
     }
    
     public function execute(Observer $observer)
     {
         $transportObject = $observer->getData('transportObject');
         if($transportObject->getData('order')){
             try {
                 if($order->getSalesrepId()){
                     $getSalesrepData = $this->_salesrepData->create()->load($order->getSalesrepId());          
                     if($getSalesrepData->getEmail()){
                         $notiEmails = $getSalesrepData->getEmail();
                         $this->orderEmail->setSalesrepEmails($notiEmails);
                         $logger->debug("Order email copy send to salesrep sucessfully....");
                     }
                 }
    
             } catch (Exception $e) {
                 $logger->error('Error while send design customer Email', ('exception' => $e));
                 echo $e->getMessage(); 
             } 
         }
     }
    

    }
    ?>

  3. create a model for set private

     <?php
     namespace VendorModulenameModel;
     class OrderEmail {
     private $extraOrderEmailId;
    
     public function setSalesrepEmails($email){
         $this->extraOrderEmailId = $email;
     }
     public function getSalesrepEmails()
     {
         return $this->extraOrderEmailId;
     }
    

    }

  4. Add plugin di.xml

     <type name="MagentoSalesModelOrderEmailContainerOrderIdentity">
             <plugin name="add_email_to_order_copy" type="VendorModulenamePluginOrderEmailContainerOrderIdentity" sortOrder="1" disabled="false" />
     </type>
    
  5. Create a plugin file

     <?php   
      namespace VendorModulenamePluginOrderEmailContainer;    
      class OrderIdentity{
          public function __construct(
             VendorModulenameModelOrderEmail $orderEmail
          ){
              $this->orderEmail = $orderEmail;
          }
           public function afterGetEmailCopyTo(
           MagentoSalesModelOrderEmailContainerOrderIdentity $subject,
           $result
           ){
     $additionalEmailId =  $this->orderEmail->getSalesrepEmails();
     if(($additionalEmailId === null) || (!$additionalEmailId) || empty($additionalEmailId)){
         return $result;
     }
     else{
         $additionalEmailId =  explode(",",$this->orderEmail->getSalesrepEmails());
         if(count($additionalEmailId)==0 || empty($additionalEmailId)){
             return $result;
         }
         else{
             if (!empty($result) && is_array($result)){
                 foreach($additionalEmailId as $additionalEmail):
                     $result() = (string) $additionalEmail;
                 endforeach;
                 return $result;
             }else{
                 return $additionalEmailId;
             }
         }
     }
     }
      }
    

Automatically mark emails from specific sender as unread after some time in gmail?

I receive notification emails from a small set of services. I would like to receive them normally, but after one day, mark them as read (or archive) automatically.

In practice, I would like the operation:

  • search on before:(yesterday) from:notifications@service.com
  • mark all as read

To be done automatically. Is this possible? Can it be done from the interface? Or is the only way to get API access and write a script? Is that even possible?

How To Send 100k+ Emails Daily INBOX Video Tutorial 1 GB+

Hello
SEMrush

I do not know if this has being shared here but putting it up againg for those that missed it

If you are interested on How to send bulk email of 100k+ daily Inbox consitently, then you need this

You will learn how to setup your own Bulk SMTP server that can send 100k+ Emails Daily Inbox

The guide is FREE to download but you will need to get domain and VPS

Download For FREE Below

https://www.mediafire.com/folder/jgrx0cdxkl76m

 

Why would cron be sending MANY Emails from root@server to user@server?

Magento ver. 1.9.3.7
Porto theme

We were (Email) blacklisted so I started digging around and on one of our Magento accounts, there are many Emails (1460 every day) which are being sent like this:

From:
root@something.ourhostingserver.com (Cron Daemon)

To: ouraccount@something.ourhostingserver.com

Subject: Cron php /home/ouruser/public_html/cron.php
Auto-Submitted:
auto-generated
Content-Type:
text/plain; charset=UTF-8

Delivered-To:
ouraccount@something.ourhostingserver.com

Delivery-date:
Wed, 10 Jun 2020 21:46:01 +0000

Envelope-to:
ouraccount@something.ourhostingserver.com

Message-Id:

Received:
from something.ourhostingserver.com
by something.ourhostingserver.com with LMTP
id cLk2MZlU4V4nXwAAkcJoQg
(envelope-from )
for ; Wed, 10 Jun 2020 21:46:01 +0000

Received:

from ouraccount by something.ourhostingserver.com with local (Exim 4.93)
(envelope-from )
id 1jj8Xp-0003Rq-PA
for ouraccount@something.ourhostingserver.com; Wed, 10 Jun 2020 21:46:01 +0000
Return-Path:
Return-path:
X-Cron-Env:

X-Cron-Env:

X-Cron-Env:

X-Cron-Env:

X-Cron-Env:

X-Cron-Env:

X-Powered-By: PHP/5.6.40
Content-type: text/html; charset=UTF-8

Why is this happening and where can one turn this off?


I just looked in the root Email account (user@domain) and it has 32 160 Emails in there! All:

  • From: root@something.ourhostingserver.com
  • To: ouraccount@something.ourhostingserver.com
  • Subject: Cron php /home/ouruser/public_html/cron.php
  • Body of Email: X-Powered-By: PHP/5.6.40
    Content-type: text/html; charset=UTF-8

I must have turned some notifications on maybe?