package com.arcbees.gwtpwebsite.server.email;
import javax.inject.Inject;
import com.arcbees.appengine.mail.Email;
import com.arcbees.appengine.mail.EmailBuilder;
public class EmailSenderImpl implements EmailSender {
private final com.arcbees.appengine.mail.EmailSender emailSender;
@Inject
EmailSenderImpl(com.arcbees.appengine.mail.EmailSender emailSender) {
this.emailSender = emailSender;
}
@Override
public void sendOrderEmail(String confirmationNumber) {
Email email = EmailBuilder.to("queenbee@arcbees.com")
.fromAddress("zom.bee@arcbees.com")
.body("Confirmation number: " + confirmationNumber)
.fromPersonal("GWTP Website")
.subject("Support Order Received").build();
emailSender.send(email);
}
}