ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » How to send emails using Ant Script.

Post new topic  Reply to topic
 How to send emails using Ant Script. « View previous topic :: View next topic » 
Author Message
Shyam Kishor
PostPosted: Wed Sep 16, 2015 10:18 am    Post subject: How to send emails using Ant Script. Reply with quote

Newbie

Joined: 10 Sep 2015
Posts: 4

Hi,
Can anyone help me sending emails using Ant Script.
I am trying to send emails using ant script ..
When i try to run my ant file using the following command:
D:\MailSend> ant
I am getting the problem like below...
email:
[mail] Sending email: Test build
......
it is not displaying promt at all ...
which means it is hanging some where ..
Here is my code ..
<?xml version="1.0"?>
<project name="Demo" default="mail" basedir=".">
<target name="mail">
<mail mailhost="smtp.gmail.com" mailport="465" password="********" subject="Test build" user="useremailid@gmail.com">
<from address="useremailid@gmail.com"></from>
<replyto address="xyz@gmail.com"></replyto>
<to address="xyz@gmail.com"></to>
<message>MSS</message>
</mail>
</project>

Other thing is that when we are giving the ssl="true" inside the mail tag
then I am getting another exception like below..
D:\MailSend>ant
Buildfile: D:\MailSend\build.xml

mail:
[mail] Sending email: Test build
[mail] Failed to send email: Could not connect to SMTP host: smtp.gmail.com, port: 465

BUILD FAILED
D:\MailSend\build.xml:14: Problem while sending mime mail:
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 16, 2015 10:22 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

gmail won't let you use plaintext SSL.

You need to ensure that your ant SSl engine has the necessary certs to connect to gmail's ssl.

It's not clear what you mean by "it is not displaying prompt at all".
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » How to send emails using Ant Script.
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.