![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
perl socket mailby hweefarn (Acolyte) |
on Dec 20, 2003 at 09:51 UTC ( #316023=perlquestion: print w/replies, xml ) | Need Help?? |
hweefarn has asked for the wisdom of the Perl Monks concerning the following question: hi everybody :)
***************************************************** i dont understand about $mailserver, $proto, $port, $serverAddr and $packFormat. the explaination that i get from the web are as below, but i'm still abit confused. -Initialize $mailServer which holds the symbolic name of your mail server. -Get the protocol number for the tcp protocol and the port number for the smtp service. Recall: Windows 95 and NT do not implement the getprotobyname()or getservbyname() functions so default values are supplied. -Initialize $serverAddr with the mail server's Internet address. -Initialize $packedFormat with format specifiers. my questions are: 1. is $mailserver means my computer name? or the hostname of the gateway of my LAN? or something like "smtp.streamyx.com"? 2. why do i need the tcp protocol? i want to send email, so i only need smtp, right? 3. is $serverAddr means the ip address of my pc? or the ip address of the gateway? or else? 4. what is $packedFormat means? it is for what? that's all my questions. if u need more information about the scripts for sending email using socket, u can go to http://www.cs.cf.ac.uk/Dave/PERL/node180.html ok, thank you very much :) regards, hweefarn 20031220 Edit by Corion: Changed formatted code to CODE tags 20031221 Edit by jeffa: Aliased email addresses
Back to
Seekers of Perl Wisdom
|
|