Jump to content
Sign in to follow this  
Steven Vandenhoute

change smtp port for _INetSmtpMail

Recommended Posts

Steven Vandenhoute

Is there a way to change the smtp port in _INetSmtpMail ?

I was looking in the help and the forum and didn't find a way to do it...

Can you help me?


"You cannot solve a problem with the mind that created it" (Albert Einstein)

Share this post


Link to post
Share on other sites
KaFu

Is there a way to change the smtp port in _INetSmtpMail ?

_INetSmtpMail() is part of Inet.au3 (in Include dir). There you'll see a line

$v_Socket = TCPConnect($s_IPAddress, 25)

copy the function to _INetSmtpMailEx() in your script and change the port as desired. Still include Inet.au3, as the function utilizes some help-func from it.

Share this post


Link to post
Share on other sites
BrettF

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.