当前位置:主页 > 365bet > 匿名发邮件 邮件服务器
202007/08

匿名发邮件 邮件服务器

admin 365bet Comments 围观:

  package org.gsoft.mail.server;

  import javax.swing.*;

  import java.awt.Font;

  import java.awt.Rectangle;

  import java.awt.Toolkit;

  import java.awt.Dimension;

  import java.util.Hashtable;

  import javax.naming.Context;

  import javax.naming.directory.DirContext;

  import javax.naming.directory.InitialDirContext;

  import javax.naming.directory.Attributes;

  import javax.naming.NamingEnumeration;

  import javax.naming.directory.Attribute;

  import java.awt.event.*;

  import java.util.List;

  import java.io.File;

  import java.util.LinkedList;

  import java.util.Properties;

  import javax.mail.Session;

  import javax.mail.internet.MimeMessage;

  import javax.mail.internet.InternetAddress;

  import javax.mail.Message;

  import javax.mail.internet.MimeMultipart;

  import javax.mail.BodyPart;

  import javax.mail.internet.MimeBodyPart;

  import javax.activation.FileDataSource;

  import javax.activation.DataHandler;

  import javax.mail.internet.MimeUtility;

  import javax.mail.Multipart;

  import java.util.Date;

  import javax.mail.Transport;

  public class EmsFrame extends JFrame

  {

  private static final long serialVersionUID=5817303146163930933L;

  JLabel senderLabel=new JLabel();

  JTextField senderField=new JTextField();

  JLabel senderPromptLadbel=new JLabel();

  JLabel receiverLabel=new JLabel();

  JTextField receiverField=new JTextField();

  JLabel mailHeadLabel=new JLabel();

  JTextField mailHeadField=new JTextField();

  JList affixList=new JList();

  JLabel affixLabel=new JLabel();

  JButton addButton=new JButton();

  JButton delButton=new JButton();

  JScrollPane jScrollPane1=new JScrollPane();

  JScrollPane jScrollPane2=new JScrollPane();

  JButton sendButton=new JButton();

  JLabel contentLabel=new JLabel();

  JEditorPane contentPane=new JEditorPane();

  JButton resetButton=new JButton();

  javax.swing.JProgressBar bar=new javax.swing.JProgressBar();

  //附件列表

  private List affixFileList=null;

  public EmsFrame()

  {

  try

  {

  jbInit();

  }

  catch (Exception e)

  {

  e.printStackTrace();

  }

  }

  public static void main(String[] args) throws Exception

  {

  UIManager.setLookAndFeel(


文章作者:admin
本文地址:
版权所有 © 未注明“转载”的文章一律为原创,转载时必须以链接形式注明作者和原始出处!
如果你觉得文章不错,您可以推荐给你的朋友哦!

◇◇上一篇:创意无限 HiFi级耳机放大器制作 下一篇:没有了 ◇◇