You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Muthu <mu...@gmail.com> on 2014/11/11 18:22:30 UTC

Unable to send email using SMTP sampler

Hi,

I'm not able to send emails using SMTP sampler, settings are proper though,
the response is as below,

Response code: 500
Response message: Other MessagingException: javax.mail.MessagingException:
Could not connect to SMTP host: 172.26.42.90, port: 25;
  nested exception is:
java.net.ConnectException: connect: Address is invalid on local machine, or
port is not valid on remote machine


When I run the same script from another machine that has direct internet
connection, it works fine, the only difference is my machine is connected
through proxy server to internet and the other machine has a direct
connection.

Thank you,
Muthu

Re: Unable to send email using SMTP sampler

Posted by Muthu <mu...@gmail.com>.
Hi,

It's resolved now. It was identified as an issue with Java trying to use IP
V6 address in Windows 8 environment, fix below. Thank you anyways.

http://stackoverflow.com/questions/15105357/address-is-invalid-on-local-machine-on-windows-8-only

Thank you,
Muthu.

On Tue, Nov 11, 2014 at 5:22 PM, Muthu <mu...@gmail.com> wrote:

> Hi,
>
> I'm not able to send emails using SMTP sampler, settings are proper
> though, the response is as below,
>
> Response code: 500
> Response message: Other MessagingException: javax.mail.MessagingException:
> Could not connect to SMTP host: 172.26.42.90, port: 25;
>   nested exception is:
> java.net.ConnectException: connect: Address is invalid on local machine,
> or port is not valid on remote machine
>
>
> When I run the same script from another machine that has direct internet
> connection, it works fine, the only difference is my machine is connected
> through proxy server to internet and the other machine has a direct
> connection.
>
> Thank you,
> Muthu
>