Actions
Tareas #5786
openrevisar envio de correo por mailersend, colocar el nombre del que envia
Start date:
08/08/2025
Due date:
% Done:
0%
Estimated time:
Description
import com.mailersend.sdk.emails.Email;
import com.mailersend.sdk.MailerSend;
import com.mailersend.sdk.MailerSendResponse;
import com.mailersend.sdk.exceptions.MailerSendException;
public void sendEmail() {
Email email = new Email();
email.setFrom("name", "your email");
Recipient recipient = new Recipient("name", "your@recipient.com");
email.addRecipient(recipient);
email.setTemplateId("Your MailerSend template ID");
MailerSend ms = new MailerSend();
ms.setToken("Your API token");
try {
MailerSendResponse response = ms.emails().send(email);
System.out.println(response.messageId);
} catch (MailerSendException e) {
e.printStackTrace();
}
}
Updated by Armando Chuto 3 months ago
email.setFrom(nombreCorreo, "your email");
Actions