auto-connect with out .netrc file

Hi all,

Till now i am using .netrc file for auto-connection to connect to remote system. my shell script contains like below code
ex: ftp -i <remote system name>

from now i should NOT use .netrc file
how can i login automativally with out asking userid and pqssword.
note: i am working on solarish machine

i want similary any otnher method
ex: ftp userid/password@remot system name.

ftp -n Suppresses auto-login upon initial connection.
e.g.

ftp -nvi $server <<EOF
user $user $password
cd $directory
put $filename
bye
EOF