Posts

Showing posts with the label email

What is the best Java email address validation method? [closed]

Image
What is the best Java email address validation method? [closed] What are the good email address validation libraries for Java? Are there any alternatives to commons validator? This question appears to be off-topic. The users who voted to close gave this specific reason: This question exists because it has historical significance, but it is not considered a good, on-topic question for this site , so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center. I'll just leave this here: davidcelis.com/blog/2012/09/06/… – misha Oct 30 '12 at 6:44 Current URL for Commons: commons.apache.org/proper/commons-validator/apidocs/org/apache/… – james.garriss Jun 16 '14 at...

How to send an iCal meeting request using TransportBuilder in magento 2.x

How to send an iCal meeting request using TransportBuilder in magento 2.x I want to integrate iCal meeting request with mail (in magento 2.2.4 v ). I am trying with following way but it doesn't work. Please help. iCal magento 2.2.4 v It shows as attachment in mail with .bin file .bin TransportBuilder.php namespace VendormoduleMagentoMailTemplate; class TransportBuilder extends MagentoFrameworkMailTemplateTransportBuilder { const TYPE_TEXTCALENDER="text/calendar"; public function addAttachment( $body, $filename = null, $mimeType = self::TYPE_TEXTCALENDER, $disposition = Zend_Mime::DISPOSITION_ATTACHMENT, $encoding = Zend_Mime::ENCODING_BASE64 ) { $this->message->createAttachment($body, $mimeType, $disposition, $encoding, $filename); return $this; } } send mail code :- ............. $transport = $this->_transportBuilder- >setTemplateIdentifier('template_iden...

Laravel: Sending Mail with Queue ignores Locale

Laravel: Sending Mail with Queue ignores Locale My Email template looks like this: @component('mail::message') # {{ $helloUser }} @lang('welcome.message') This App::setLocale('de); $activeMail = new AppMailRegisterActivate($user); Mail::to($user)->send($activeMail); will send an mail with German text. However, when I use a queue App::setLocale('de); $activeMail = new AppMailRegisterActivate($user); Mail::to($user)->queue($activeMail); The mail is send in English, which is the default language of my app. How can I send a message in German with the queue without changing the default language? 2 Answers 2 In Laravel 5.6. the Mailable class has gotten a locale method to care for this: Mailable locale $activeMail = new AppMailRegisterActivate($user)->locale('tr'); Mail::to($user)->queue($activeMail); For Laravel < 5.6 you have to save the text in the ma...