Mail From DreamApps should maintain following steps:

1. At first following lines should incorporate in da.globals:

[mail]
smtp “smtp.gmail.com”
server “pop.gmail.com”
portsmtp 465
ssl “yes”
authsmtp “yes”

protocol “pop3”
portrec 995
mailbox “INBOX”
user “helpdesk@advancederpbd.com”
password “helpdesk2020”

2. In our .page we should write the following lines:

set amtrcvd=“Leave Application Apply”
str msgbody
text “lvapply.email”,“string msgbody”
mail from=xfrom(From Address);;to=xto(To Address);;sub=amtrcvd;;message=msgbody

lvapply.email is a text file which extension should be .email. You can maintain the following text:

lvapply.email
Dear Sir:
“”+prmst.xname(xemp)+“ (”+xemp+“)“
“has applied for ”+xleave+” for ”+xdaysreq+“ day(s) from ”+#format(xfdate,date)+“ to ”+#format(xtdate,date)+~
“ for ”+xpurpose+“.”
Please take an appropriate action.
Regards
“”+zbusiness.xshort()+“ Automated Leave Routing Service”
“”+zbusiness.zorg()
“”+zbusiness.xcity()