Update: POE::Component::Client::SMTP
That is good, at least the admin seems to do his job ;-).. The smtp Server protects against relaying unauthorized Mails (Preventing to be an open relay for Spammers). As pointed out by others you should provide more infos, is the Mailserver under your control, is it in your (local network), contact the admin? e.g. otherwise you should authenticate or you wont get your mail relayed ...
You should get your hostname by running the command "hostname". I wonder if you know a little about E-Mail Servers? Perhaps you could provide a little more info, where are you (your domainname e.g.) and where do you want to send mail (in your Mail-Domain or to a (foreign) domain?)? With such little info provided no one is able to give you exact advice ...
btw: you could simply test a mailserver by typing:
telnet nameofmailser.domain.tld 25
helo yourhostname.yourdomain.tld
mail from:<yourmailadress.yourdomain.tld>
rcpt to:<destinationmailadress.destinationdomain.tld>
DATA
bla bla
.
The trailing "." in the code section ends the Mail Data and the mail is sent (if not rejected by the server ofc, most mailserver reject "late" after the "DATA" keyword but that depends on how the mailadmin configured it ...).
hth
MH
|