Please help Javamail
javax.mail.MessagingException: 550 5.7.1 Sender rejected: info@bazaar.ae is not a valid from address
Can anyone please help me debug this problem....
this is the code that im using
<%@ page import="java.util.*, javax.mail.*, javax.mail.internet.*" %>
<%
Properties props = new Properties();
props.put("mail.smtp.host", "mail.emirates.net.ae");
Session s = Session.getInstance(props,null);
MimeMessage message = new MimeMessage(s);
InternetAddress from = new InternetAddress("info@bazaar.ae");
message.setFrom(from);
InternetAddress to = new InternetAddress("vpbjcd@yahoo.com");
message.addRecipient(Message.RecipientType.TO, to);
message.setSubject("Test from JavaMail.");
message.setText("Hello from JavaMail!");
Transport.send(message);
%>
<html>
<p align="center">A Message has been sent.
Check your inbox.
<p align="center"><a href="sendmail.jsp">Click here to send another!</a>
</html>

