Project

General

Profile

Actions

Tareas #5786

open

revisar envio de correo por mailersend, colocar el nombre del que envia

Added by Jose Orlando 3 months ago. Updated 3 months ago.

Status:
Resuelta
Priority:
Normal
Assignee:
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", "");
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();
}
}
Actions #1

Updated by Armando Chuto 3 months ago

email.setFrom(nombreCorreo, "your email");

Actions #2

Updated by Armando Chuto 3 months ago

  • Status changed from Nueva to Resuelta
Actions

Also available in: Atom PDF