Python:自动电子邮件发送未发送给收件人

时间:2017-03-15 17:01:41

标签: python email scripting automation

我有一个脚本可以自动发送带有csv附件的电子邮件。但是,它并没有出现在任何收件人的收件箱中;但是,当我将电子邮件添加到列表中时,它会显示在我的收件箱中。代码没有产生任何错误。有人可以请找出错误的原因吗?

boolean flood(BufferedImage img, boolean[][] mark,
                             int row, int col, Color srcColor, Color tgtColor) {

// make sure row and col are inside the image if (row < 0) return false; if (col < 0) return false; if (row >= img.getHeight()) return false; if (col >= img.getWidth()) return false; // make sure this pixel hasn't been visited yet if (mark[row][col]) return false; Color asli = new Color(img.getRGB(col, row)); // make sure this pixel is the right color to fill if (!asli.equals(srcColor)) return false; // fill pixel with target color and mark it as visited img.setRGB(col, row, tgtColor.getRGB()); mark[row][col] = true; // recursively fill surrounding pixels flood(img, mark, row - 1, col, srcColor, tgtColor); flood(img, mark, row + 1, col, srcColor, tgtColor); flood(img, mark, row, col - 1, srcColor, tgtColor); flood(img, mark, row, col + 1, srcColor, tgtColor); return true; } boolean[][] mark = new boolean[citra.getHeight()][citra.getWidth()]; for (int y = 0; y < citra.getHeight(); y++) { for (int x = 0; x < citra.getWidth(); x++) { Color warna = new Color(citra.getRGB(x, y)); if (warna.equals(Color.WHITE)){ flood(citra, mark, x, y, Color.WHITE, Color.RED); break; } } } imagebiner.setIcon(new ImageIcon(citra.getScaledInstance(300, 300, Image.SCALE_SMOOTH))); repaint();

0 个答案:

没有答案
相关问题