Edit C:\Users\Administrator\Desktop\Back\Livraison EVQG22\com\edeal\frontline\helper\custom\PowerEmailHelperCustom.class
Êþº¾ 3ñ 8com/edeal/frontline/helper/custom/PowerEmailHelperCustom java/lang/Object logger Lorg/apache/commons/logging/Log; bodyTemplate Ljava/lang/String; subject from %Ljavax/mail/internet/InternetAddress; cc &[Ljavax/mail/internet/InternetAddress; bcc replyTo [Ljavax/mail/Address; message !Ljavax/mail/internet/MimeMessage; attachment KLcom/edeal/frontline/helper/custom/PowerEmailHelperCustom$BinaryAttachment; attachments Ljava/util/Vector; Signature _Ljava/util/Vector<Lcom/edeal/frontline/helper/custom/PowerEmailHelperCustom$BinaryAttachment;>; mailSession Ljavax/mail/Session; msgBodyFormat headers Ljava/util/HashMap; 9Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>; useHubSmtpServer Z context Lcom/edeal/frontline/FlContext; <clinit> ()V Code ' ) ( %org/apache/commons/logging/LogFactory * + getLog 3(Ljava/lang/Class;)Lorg/apache/commons/logging/Log; - LineNumberTable LocalVariableTable <init> 6(Ljavax/mail/Session;Lcom/edeal/frontline/FlContext;)V Exceptions 4 &com/edeal/frontline/FrontlineException 6 0 $ 8 : < > @ B D ! " F H java/lang/String G 6 K M java/util/Vector L 6 P R T java/util/HashMap S 6 this :Lcom/edeal/frontline/helper/custom/PowerEmailHelperCustom; 7(Ljavax/mail/Session;Lcom/edeal/frontline/FlContext;Z)V setMsgBodyFormat (Ljava/lang/String;)V format getMsgBodyFormat ()Ljava/lang/String; setSubject ` sub setBodyTemplate template getBodyTemplate setFrom g #javax/mail/internet/InternetAddress f i 0 Z k m java/lang/StringBuilder o from address not correct: l i l r s t append -(Ljava/lang/String;)Ljava/lang/StringBuilder; l v w ] toString y { z org/apache/commons/logging/Log | } error *(Ljava/lang/Object;Ljava/lang/Throwable;)V f 6 ? java/lang/Exception emailAddress e Ljava/lang/Exception; StackMapTable (Ljavax/mail/Address;)V ? from address not correct Ljavax/mail/Address; setCC ([Ljavax/mail/Address;)V ? CC address not correct setBCC ? BCC address not correct getReplyTo ()[Ljavax/mail/Address; setReplyTo setAttachment '(Lcom/edeal/frontline/AttachmentBean;)V ? Icom/edeal/frontline/helper/custom/PowerEmailHelperCustom$BinaryAttachment ? ? 0 ? a(Lcom/edeal/frontline/helper/custom/PowerEmailHelperCustom;Lcom/edeal/frontline/AttachmentBean;)V L ? ? ? add (Ljava/lang/Object;)Z ab $Lcom/edeal/frontline/AttachmentBean; clearAttachment L £ ¤ $ clear buildBodyWithText H(Ljava/lang/String;Ljava/lang/String;)Ljavax/mail/internet/MimeBodyPart; ¨ javax/mail/internet/MimeBodyPart § 6 § « ¬ setContent '(Ljava/lang/Object;Ljava/lang/String;)V ¯ BuildBodyWithText body contentType mbp "Ljavax/mail/internet/MimeBodyPart; buildBodyWithHtmlText 6(Ljava/lang/String;)Ljavax/mail/internet/MimeBodyPart; · text/html;charset="utf-8" ¹ ¥ ¦ htmlText buildBodyWithPlainText ½ text/plain;charset="utf-8" text buildMessageBody <(Ljava/lang/String;Ljava/lang/String;)Ljavax/mail/Multipart;  javax/mail/MessagingException L Ä Å Æ isEmpty ()Z È É Ê getAlternativeBodyMimeMultipart I(Ljava/lang/String;Ljava/lang/String;)Ljavax/mail/internet/MimeMultipart; Ì !javax/mail/internet/MimeMultipart Î mixed Ë i Ñ Ò Ó buildContentBodyPart ;(Ljava/lang/String;Ljava/lang/String;)Ljavax/mail/BodyPart; Ë Õ Ö × addBodyPart (Ljavax/mail/BodyPart;)V Ù Ú Û buildAttachmentParts ()Ljava/util/List; Ý ß Þ java/util/List à á iterator ()Ljava/util/Iterator; ã å ä java/util/Iterator æ ç next ()Ljava/lang/Object; é javax/mail/BodyPart ã ë ì Æ hasNext bodyText multipartRoot #Ljavax/mail/internet/MimeMultipart; contentBodyPart Ljavax/mail/BodyPart; attachmentParts Ljava/util/List; singleAttachmentPart LocalVariableTypeTable 'Ljava/util/List<Ljavax/mail/BodyPart;>; )()Ljava/util/List<Ljavax/mail/BodyPart;>; ù java/util/ArrayList ø 6 L ü ý þ get (I)Ljava/lang/Object; mail.mime.encodefilename true java/lang/System setProperty 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; javax/activation/DataHandler 0 (Ljavax/activation/DataSource;)V § setDataHandler !(Ljavax/activation/DataHandler;)V ? ] getName javax/mail/internet/MimeUtility encodeText &(Ljava/lang/String;)Ljava/lang/String; § Z setFileName Ý ? buildBodyWithAttachment L"#$ size ()I attachmentsParts i I attach è* ¬+ (Ljavax/mail/Multipart;)V alternativePart content/ alternative 1 » µ ¿ 4 ´ µ textPart part addHeader '(Ljava/lang/String;Ljava/lang/String;)V :<; #org/apache/commons/lang/StringUtils Å= (Ljava/lang/String;)Z S?@A put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; headerName headerValue send ^([Ljavax/mail/internet/InternetAddress;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; GDH _([Ljavax/mail/internet/InternetAddress;Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String; to L([Ljavax/mail/internet/InternetAddress;Ljava/lang/String;)Ljava/lang/String; LDM M([Ljavax/mail/internet/InternetAddress;Ljava/lang/String;Z)Ljava/lang/String; isHtmlP R javax/mail/internet/MimeMessage QT 0U (Ljavax/mail/Session;)V W QY e ? []\ javax/mail/Message$RecipientType^_ TO "Ljavax/mail/Message$RecipientType; Qabc setRecipients :(Ljavax/mail/Message$RecipientType;[Ljavax/mail/Address;)V [ef_ CC [hi_ BCC Qk ? ?m utf-8 Qo ^8q java/util/Date p 6 Qtuv setSentDate (Ljava/util/Date;)V S Ä Syz{ keySet ()Ljava/util/Set;} ß~ java/util/Set S? ý? &(Ljava/lang/Object;)Ljava/lang/Object; Q?78 ?<? com/edeal/frontline/Utils ??? %com/edeal/frontline/helper/HTMLHelper? html2text ? ¿ À Q*? smtp ??? javax/mail/Session?? getTransport *(Ljava/lang/String;)Ljavax/mail/Transport;? OutMailServerQstHubEDeal ??? com/edeal/frontline/FlContext? getContextParameter? OutMailServerQstHubEDealLogin¡ OutMailServerQstHubEDealPassword £¥¤ javax/mail/Transport¦§ connect 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V Q©ª ? getAllRecipients £¬® sendMessage ,(Ljavax/mail/Message;[Ljavax/mail/Address;)V° OK² PowerEmailHelperCustom.send : ´µ ] getMessage y· |¸ (Ljava/lang/Object;)Vº KO:PowerEmailHelperCustom.send : £¼½ $ close £¿DÀ (Ljavax/mail/Message;)V yÂø warnÅ Email sent to : fÇÈ ] getAddress yÊ˸ debug retValue msgreturn headName tr Ljavax/mail/Transport; smtpServer username passwordÕ java/lang/Throwable convertStringToInternetAddress 8(Ljava/util/List;)[Ljavax/mail/internet/InternetAddress; L(Ljava/util/List<Ljava/lang/String;>;)[Ljavax/mail/internet/InternetAddress;Ú cannot cast (Ü ) to a proper email address Ý" Ýßàá toArray (([Ljava/lang/Object;)[Ljava/lang/Object; emailslist listIa s $Ljava/util/List<Ljava/lang/String;>; 7Ljava/util/List<Ljavax/mail/internet/InternetAddress;>; #()Ljavax/mail/internet/MimeMessage; access$0 "()Lorg/apache/commons/logging/Log; SourceFile PowerEmailHelperCustom.java InnerClasses BinaryAttachmentï javax/mail/Message RecipientType ! ! "