| [reply] |
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.
| [reply] |
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 | [reply] |
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. | [reply] |
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
| [reply] |
| [reply] |
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.
| [reply] [d/l] |