Dont want to mention user id passwd in shell script

Hi,

i have one shell script which transfers files from one server to other server through FTP, but i can see login id and password is not mentioned.
kindly help to understand the script.then how below script is working if login and password is not mentioned in script

#!/bin/sh
LOCAL=/u04/server/shared/Files
REMOTESERVER=abc43.mpcc.com
REMOTE=/data/dev/ebs/cat/

cd $LOCAL
rm *.gz
gzip *.DAT
ftp -v  $REMOTESERVER <<INPUT_END
cd $REMOTE
prompt off
put D_HEAD_D.DAT.gz
put D_ITEM_D.DAT.gz
quit
INPUT_END
exit 0

****************

Thnx

The login is taken from a file .netrc in the user's home directory. The lines in the file look like

machine remoteserver login username password password