L
Luke
Hi
I use this code to send emails:
import org.apache.commons.mail.*;
SimpleEmail email = new SimpleEmail();
email.setFrom(from, "Name");
email.addTo(to);
email.setSubject(oggetto);
email.setHostName("mailserver");
email.setMsg(messaggio);
email.send();
if the "To" field is an internal address of the domain
([email protected]) it works and the mail is sent.
If the "To" field is a domain external address ([email protected]) it
gives me the error:
Sending the email to the following server failed : mailserver:25
How is it possibile?
any solution?
thanks
I use this code to send emails:
import org.apache.commons.mail.*;
SimpleEmail email = new SimpleEmail();
email.setFrom(from, "Name");
email.addTo(to);
email.setSubject(oggetto);
email.setHostName("mailserver");
email.setMsg(messaggio);
email.send();
if the "To" field is an internal address of the domain
([email protected]) it works and the mail is sent.
If the "To" field is a domain external address ([email protected]) it
gives me the error:
Sending the email to the following server failed : mailserver:25
How is it possibile?
any solution?
thanks