Jump to content
Sign in to follow this  

Help - Problem using inetsmtpmailcom with proxy

Recommended Posts

Hi all.

I am using the _inetsmtpmailcom with attachments script found here -->

It works fine as-is and with the "ReplyTo" field i added.

However, I need to send through a proxy, but can't get it to send through the proxy, it always shows up as from my IP. No errors are displayed no matter what I put in the proxy config fields

I added proxy fields as per the microsoft website info:




Here is a snipit of the standard emailer long with the code I added:


$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = $s_Password


If $ssl Then

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True


;=============================== added proxy stuff \/ \/ \/

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/urlproxyserver") = ""

;$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/proxyserverport") = 55555

$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/proxyserverport") = "55555"

;$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/urlproxybypass") = "crapburgers"

;$objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/urlproxyserver") = ""


;=============================== added proxy stuff /\ /\ /\


;====== \/ \/ \/ ============= added reply to: field

$objEMail.ReplyTo = $ReplyAddress

;======= /\ /\ /\ ============= added reply to: field

;Set Email Importance

Switch $s_Importance

Case "High"

$objEmail.Fields.Item ("urn:schemas:mailheader:Importance") = "High"

Case "Normal"

$objEmail.Fields.Item ("urn:schemas:mailheader:Importance") = "Normal"

Case "Low"

$objEmail.Fields.Item ("urn:schemas:mailheader:Importance") = "Low"



; Send the Message



As you can see, I just plunked various versions (I tried various combos in an effort to get it to work) of my modifications in the middle of the script I reference above.

The "ReplyTo" works, the proxy stuff doesn't. When I send an email, it shows up as being sent from my IP addy, not the proxies.

To test, I send an email to myself, then examine the headers for the desired IP address.

I also use ProxyFirewall to make sure the proxy is working. I.e., I set ProxyFirewall to the desired proxy, and my email shows up as being sent from the proxy IP. This tells me that the proxy is working, but my attempts at making my script use the proxy isn't working.

So, what am I missing? I see, in the examples section of this site, that others are fiddling with Hkeys and other stuff that I do not yet really understand in order to get ProxySwitchers (for IE?) to work. Is this sort of thing also required to use a proxy with email?


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...