Perl and using proxys for SMTP

xpro

Regular Member
Joined
Jan 21, 2009
Messages
442
Reaction score
24
Hello

I currently use a custom perl program that sends email via gmail's smtp service, but since it logs in to them with 1 ip (my home ip) they all get disabled in a day. Is there some kind of module or anyway that I can make them go through different ips?


Best Regards!
 
Hello

I currently use a custom perl program that sends email via gmail's smtp service, but since it logs in to them with 1 ip (my home ip) they all get disabled in a day. Is there some kind of module or anyway that I can make them go through different ips?


Best Regards!

Why don't you try and use socks5. I've not tried this but you can prbably use something like this on your program:

$ENV{HTTPS_PROXY} = 'https://IP:PORT';
$ENV{HTTP_PROXY} = 'http://IP:PORT';

Let me know if that works.

Oops. I said socks5. Let me look up what the syntax is for socks5
 
The ONE AND ONLY: http://curl.haxx.se/libcurl/perl/

Edit:
Whoops, just saw you'r looking to write a SMTP tool. libcurl is not the best in that case, sry
but in case you ever want to write HTTP tools -> libcurl
 
Last edited:
Back
Top