i am new to grails , i created a new project to check mail plugin. In the controller i added the following command in index
sendMail {
to "[email protected]"
from "another_valid_id @gmail.com"
subject "link test"
body 'haiiii'
//html g.render(template:"mailtemplate",model:[code:UUID.randomUUID().toString()])
}
render "send"
when i am running the application it shows no error and display send in browser. but when i am checking the my mail inbox mail is not reached. i didn't done any changes in config file. as it by default works in localhost and in port 25.
thankz in advance