1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Perl and using proxys for SMTP

Discussion in 'PHP & Perl' started by xpro, Sep 1, 2009.

  1. xpro

    xpro Regular Member

    Joined:
    Jan 21, 2009
    Messages:
    416
    Likes Received:
    16
    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!
     
  2. mrxtc89117

    mrxtc89117 Junior Member

    Joined:
    Apr 23, 2008
    Messages:
    150
    Likes Received:
    15
    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
     
  3. justone

    justone Elite Member

    Joined:
    Oct 12, 2008
    Messages:
    1,516
    Likes Received:
    1,037
    Occupation:
    -
    Location:
    Europe
    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: Sep 1, 2009