Hello,
I'm trying to send a mail from google app engine. The problem is that
each time i send a mail, the message is sending also to the Sender.
First time, i tried with the Transport java class and later with
MailService, always with the same result. Two mails were sent, to the
recipient of the message but also to the sender.
This is my code:
MailService mailService = MailServiceFactory.getMailService();
MailService.Message mess = new MailService.Message();
mess.setSender(fromMail.getAddress());
mess.setTo(toMail[0].getAddress());
mess.setSubject(subject);
mess.setTextBody(body);
try {
mailService.send(mess);
} catch (Exception e) {
e.printStackTrace();
}
Is it possible to send the message only to the recipient?
Thank you very much!
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.