RegistrationWizardStep6

<% import org.apache.commons.net.smtp.*

port = 1025 org = 'eng.it' fixture = new EmailFixture(port)

client = new SMTPClient() client.connect('localhost', port) client.login()

// set sender and recipient client.sender = "dna2gmdd.dl" client.addRecipient("giampaolo.fiorentino@$org")

// create and send header information header = new SimpleSMTPHeader("fiorentg@$org", "giampaolo.fiorentiono@$org", 'Successful build') header.addCC("occhipin@$org") header.addHeaderField('Organization', org) writer = new PrintWriter(client.sendMessageData()) writer << header

// send body of message writer << 'Successful build for ' + new Date() writer.close()

client.logout() client.disconnect()

fixture.assertEmailArrived(from: "giampaolo.fiorentino@$org", subject: 'Successful build')

} sentEmail()

%>

Tags:
Created by Giampaolo Fiorentino on 2007/11/08 13:38

Join OW2

Join industry leaders, academics and individuals and help shape the future of middleware

http://skins.ow2.org/skins/skinOW2/images/Featuredvideo.png
  • Yves de Montcheuil, Talend
http://skins.ow2.org/skins/skinOW2/images/watchallvideos.png

Powered by XWiki Hosted by Xsalto Free PageRank Checker Creative Commons 2.0 license Legal Notice