Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [angus-dev] use of angus mail in google app engine
  • From: Jason Mehrens <jason_mehrens@xxxxxxxxxxx>
  • Date: Sat, 11 Oct 2025 16:17:49 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xCQlpKJoFBoLBw5JvP3bxtEpzTvKFlzBJt16ZztVI0U=; b=xJwuroAE1e2WF5DW0qz8cWiqfDSq+e7lkQgRYCyByiChTricv7W6NrkJE23uRQ7cfqcRYca9qUi0xQjtjUpSbRJSQNcg2Vi2k8DtmIq+mz7wHpdDQqqHZNJ0HEpFMwUnVW5tRB4AWB7ccqk3aagomG6sr+kyKMYQjIdA4HTVD0iHkXTPVqwYlXQnRu+o4B6gOZSgRWLaTKGfbWK2BmQOR4TSe66qZKdTFtHG78XKjqunCY78yeVvugZQH11UsY+/YCD37ItI05WqLKmcq4zRIeI5ZagxlvGxiEjp2Vu6nFamMeVyxAaqEdjcr4efyfe4ZtOd5NMMgfVIYKPqjLoWRw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lvM5jkJQKyHP5QArPTVZ75ytB90fuTpD0yU5mnyZPq9xEocXw/Yf7f1z6cYDlb10al8Yd+ACUPPZvkG0UbuFHclda1q7O27SAWWog9ItbhnHIOUYKxfDeKNjiiY/tkTiToYvXxqwBsmRCIrkibTlvCxNrfbwa4AS68ob0zdqqqCe1NdQH9rtla0NjGUnyToXamct4qBhnfKkDunuXD3I762jnpPj50DgFFFs27IJ2MRHKeLdRIRufyG1V3W6tx7/jak0znSri4gX2re4PdczQKch81vK7MAXzm9nHl66Y8clqSrYNNfE1Gu6rZJoFFqZ8nHSXk1NyyII+bK6EU/Tuw==
  • Delivered-to: angus-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/angus-dev/>
  • List-help: <mailto:angus-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/angus-dev>, <mailto:angus-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/angus-dev>, <mailto:angus-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHcOrJbMXaX5RnI80SexpC2nW1B57S9G/BY
  • Thread-topic: [angus-dev] use of angus mail in google app engine

Add a new catch block (for troubleshooting) to deal with Error and RuntimeExecption.

 

catch (Throwable e){

E.printStackTrace(System.out)

}


Looks to me link you are missing angus activation, the implementation for activation.


Jason



From: angus-dev <angus-dev-bounces@xxxxxxxxxxx> on behalf of jan meuleman via angus-dev <angus-dev@xxxxxxxxxxx>
Sent: Saturday, October 11, 2025 8:24 AM
To: angus-dev@xxxxxxxxxxx <angus-dev@xxxxxxxxxxx>
Cc: jan meuleman <jmjanmeuleman@xxxxxxxxx>
Subject: [angus-dev] use of angus mail in google app engine
 
Hi folks,
In the past, my google app engine program worked well with javax mail. Now I have to use jakarta mail and so I have the following dependencies:

<dependency>

<groupId>jakarta.activation</groupId>

<artifactId>jakarta.activation-api</artifactId>

<version>2.2.0-M1</version>

</dependency>

<dependency>

<groupId>org.eclipse.angus</groupId>

<artifactId>angus-activation</artifactId>

<version>2.0.3</version>

</dependency>


<dependency>

<groupId>jakarta.mail</groupId>

<artifactId>jakarta.mail-api</artifactId>

<version>2.1.3</version>

</dependency>

<dependency>

<groupId>org.eclipse.angus</groupId>

<artifactId>angus-mail</artifactId>

<version>2.0.4</version>

</dependency>


The program code is:


public void sendmail(Reservering reservering) {

Properties props = new Properties();

Session session = Session.getDefaultInstance(props, null);

Message msg = new MimeMessage(session);

try {

DSManager dbManager = new DSManager();

String emailadresRoosteraar = dbManager.getSystemVariable("roosteraar");

Vrijwilliger roosteraar = dbManager.getVrijwilliger(emailadresRoosteraar);

msg.setFrom(new InternetAddress("juniorentechniekhaaksbergen@xxxxxxxxx", "Juniorentechniek Haaksbergen"));

msg.addRecipient(Message.RecipientType.TO,

new InternetAddress(emailadresRoosteraar, roosteraar.getNaam()));

msg.addRecipient(Message.RecipientType.TO,

new InternetAddress("meuleman@xxxxxxxxxxxxxxx", "jan meuleman"));

msg.setSubject("Nieuwe reservering");


msg.setContent(getReserveringsbrief(reservering), "text/html");

Transport.send(msg);

}

catch (AddressException e) {

System.out.println("AddressException" + e.getStackTrace());

}

catch (MessagingException e) {

System.out.println("MessagingException" + e.getStackTrace());

}

catch (UnsupportedEncodingException e){

System.out.println("UnsupportedEncodingException" + e.getStackTrace());

}

}

But nothing happens, even not an error.

My question: What am I doing wrong ?


Kind regards,

Jan Meuleman



Back to the top