Maven: Error on sending email (SMTP Office365) using ch.fortysix, maven-postman-plugin -
i able receive email when use smtp smtp.gmail.com in maven pom.xml file fails when use smtp.office365.com using maven-postman-plugin . plugin have added in pom file below
<plugin> <groupid>ch.fortysix</groupid> <artifactid>maven-postman-plugin</artifactid> <version>0.1.6</version> <executions> <execution> <id>send_an_email</id> <phase>site</phase> <goals> <goal>send-mail</goal> </goals> <inherited>true</inherited> <configuration> <!--mailhost>smtp.gmail.com</mailhost--> <mailhost>smtp.office365.com</mailhost> <mailuser>abcd123@xyz.com</mailuser> <!-- put password here --> <mailpassword>ksdjfksj</mailpassword> <mailport>587</mailport> <mailssl>false</mailssl> <mailaltconfig>true</mailaltconfig> <from>abcd123@xyz.com</from> <receivers> <receiver>abcd123@xyz.com</receiver> </receivers> <subject>test automation report</subject> <failonerror>false</failonerror> <htmlmessage> <![cdata[ <p>partner, have new deployment!</p> <br> <p>have nice day.</p> ]]> </htmlmessage> <filesets> <fileset> <directory>${basedir}/target/surefire-reports</directory> <includes> <include>**/junit-noframes.html</include> </includes> </fileset> </filesets> </configuration> </execution> </executions> </plugin>
error receive in jenkins maven run - "sending email following server failed : smtp.office365.com:587" . same case when build using maven alone. please note: able receive email jenkins same email configuration configured maven.
Comments
Post a Comment