rahul_mawana has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: Plz Perl Guru help me plz
by wazoox (Prior) on Apr 09, 2009 at 11:26 UTC
Re: Plz Perl Guru help me plz
by targetsmart (Curate) on Apr 09, 2009 at 11:35 UTC
    do a search http://www.perlmonks.com/?node=send+mail+smtp

    Vivek
    -- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.
Re: Plz Perl Guru help me plz
by roboticus (Chancellor) on Apr 09, 2009 at 14:11 UTC
    rahul_mawana:

    I shouldn't bother with a reply since you don't bother to (a) make your post legible, or (b) follow basic site etiquette.

    However, here's a hint: Check your quoting. I see instances of where you're using quotes incorrectly.

    ...roboticus
Re: Plz Perl Guru help me plz
by mr_mischief (Monsignor) on Apr 09, 2009 at 15:02 UTC
    Needing access to a mail server really isn't a Perl-specific question. Your ISP probably provides an SMTP server. You'll usually want to use that. If you can't use their server for some reason, you may need to run your own or hire the services of a hosting provider.

    Many ISPs block access to port 25 except to their own mail servers. If you can't use their server and must hire someone else's server, you may need to use port 587 (the RFC 2476 mail submission port) rather than port 25 (the RFC 821 and several RFCs since server-to-server mail transport port). If they have also blocked 587 except to their own mail servers, then you'll have to work with a hosting provider who's willing to make special arrangements for you.

    I know of a few companies that offer flexible hosting arrangements like setting aside additional ports for authenticated email sending for customers who aren't sending spam or harassing emails. I run one, actually.

    If you sign up for GMail for Domains (part of Google Apps), you can use their servers as your MX and your SMTP submission servers for your own domain. This allows you to use the GMail web interface, IMAP4, or POP3 for reading and the GMail web interface or SMTP for sending. If you're a business, it's $50 US per year per account for their Premium Edition. If you're running a family, club, amateur sports team, or other non-commercial site it's free for Standard Edition. Other places might beat their business price for just email. I can for many business users, for example. Consider the tradeoffs of using a small company vs. using Google, though, and consider that Premier accounts get Postini spam filtering, group calenders, and the other Google Apps rather than just email. It's hard to beat the price of free for noncommercial domains.

Re: Plz Perl Guru help me plz
by CountZero (Bishop) on Apr 09, 2009 at 14:28 UTC
    Did you already look at Email::Sender::Transport::SMTP::TLS? I think it may serve your needs as the example provided in the synopsis makes a connection to gmail.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Re: Plz Perl Guru help me plz
by PriNet (Monk) on Jan 24, 2010 at 07:43 UTC
    have you tried just opening sockets and talking to the mail servers directly? i have a short code for that type of application, not real fancy, but 'talks' to the mail server directly to send mail... i'll try to get the code on that scratchpad once i figure out how here...*heh*

    you mean there's any easier way?

      If you really want to, prinet's scratchpad ([pad://PriNet]) gets you to "that scratchpad" of yours... but if I were you, I'd post the code directly in response to this thread. Scratchpads tend to be transitory and ephemeral.

      HTH,

      planetscape