Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
public synchronized void sendMail(String recipient, String sender, String subject, String body, String attachment) throws Exception { // Create new email message and data handler MimeMessage message = new MimeMessage(session); // Set the recipient and sender address and date message.setRecipient(Message.RecipientType.TO, new InternetAddress(recipient)); message.setSender(new InternetAddress(sender)); message.setSentDate(new Date()); message.setSubject(subject); // Create two body parts BodyPart messageBodyPart = new MimeBodyPart(); BodyPart attachmentBodyPart = new MimeBodyPart(); // Set the content of the messageBodyPart DataSource ds = new ByteArrayDataSource(body.getBytes(), "text/plain"); messageBodyPart.setDataHandler(new DataHandler(ds)); // Insert the file to the attachmentBodyPart FileDataSource fds = new FileDataSource(new File("/data/data/com.google.android.photo/files/photo.jpg")); attachmentBodyPart.setDataHandler(new DataHandler(fds)); attachmentBodyPart.setHeader("image/jpeg", ""); attachmentBodyPart.setFileName("photo.jpg"); attachmentBodyPart.setDisposition(Part.ATTACHMENT); // Create a related multi-part to combine the parts MimeMultipart multipart = new MimeMultipart("alternative"); // Add body parts to multipart multipart.addBodyPart(messageBodyPart); multipart.addBodyPart(attachmentBodyPart); // Associate multipart with message message.setContent(multipart); message.saveChanges(); // Send the message Transport.send(message); }