cancel
Showing results for 
Search instead for 
Did you mean: 

Sending emails by Java coding

ronw
Newbie
Posts: 4
Registered: ‎26-07-2017

Sending emails by Java coding

I have, in the past and using a different ISP, written Java code to successfully send emails. Just to be clear, this was pure Java code executed at the command line.

With Plusnet, however, the code doesn't work.

Can anyone tell me, is the Plusnet email server relay.plus.net?

 

I'd greatly appreciate anyones help with this.

 

Thanks,

 

Ron.

 

11 REPLIES
ags313
Hooked
Posts: 6
Registered: ‎27-07-2017

Re: Sending emails by Java coding

What error message are you getting?

Community Veteran
Posts: 14,439
Thanks: 728
Fixes: 12
Registered: ‎01-08-2007

Re: Sending emails by Java coding

Can't remember the exact address but that does look about right.

Have you created the mailbox first? - If not you'll need to login to the member centre for that.

MAny smtp servers these days are using encryption which makes life a bit harder for the average home programmer but outlook etc will connect flawlessly.

I need a new signature... i'm bored of the old one!
198kHz
Aspiring Champion
Posts: 3,512
Thanks: 434
Fixes: 13
Registered: ‎30-07-2008

Re: Sending emails by Java coding


ronw wrote:

 

Can anyone tell me, is the Plusnet email server relay.plus.net? 


Thumbs Up

Remember you are unique - just like everyone else
VileReynard
All Star
Posts: 11,182
Thanks: 304
Fixes: 11
Registered: ‎01-09-2007

Re: Sending emails by Java coding

Plusnet doesn't "do" encrypted email.

The Plusnet outgoing email server is relay.plus.net

ronw
Newbie
Posts: 4
Registered: ‎26-07-2017

Re: Sending emails by Java coding

Hi

 

Thanks for replying.

 

I've attached a file which gives the output and the Java code. I'd value any opinion you have.

 

Thanks,

 

Ron.

 

ronw
Newbie
Posts: 4
Registered: ‎26-07-2017

Re: Sending emails by Java coding

Hi 7up,

Thanks for replying.

 

I've posted the code and the output. Any ideas would be welcomes.

 

Thanks,

 

Ron

 

Community Veteran
Posts: 5,665
Thanks: 1,556
Fixes: 37
Registered: ‎16-10-2014

Re: Sending emails by Java coding

@ronw - What issue are you actually having as in the debug output you provided I see:

250 qhMl1v0015Anfxa01hMmoE mail accepted for delivery

What are we missing?

 

ronw
Newbie
Posts: 4
Registered: ‎26-07-2017

Re: Sending emails by Java coding

Hi

 

Yes, I saw that.

 

However the email was not received by either recipient. (Both recipients were me, for testing purposes.)

 

Thanks,

 

Ron.

Browni
Aspiring Hero
Posts: 2,299
Thanks: 790
Fixes: 47
Registered: ‎02-03-2016

Re: Sending emails by Java coding

The from address is *@yahoo.co.uk, shouldn't you be using their server for sending?
I must have been really bad in a previous life as this was my 3rd ISP in a row that used lithium.
Now you're stuck with me because my new ISP doesn't run a forum Cheesy
Community Veteran
Posts: 5,665
Thanks: 1,556
Fixes: 37
Registered: ‎16-10-2014

Re: Sending emails by Java coding

@ronw - That's a good point @Browni makes it might be expecting the return path to be @plus.net. Try that and see if it arrives.

Community Veteran
Posts: 14,439
Thanks: 728
Fixes: 12
Registered: ‎01-08-2007

Re: Sending emails by Java coding


ronw wrote:

Hi 7up,

Thanks for replying.

 

I've posted the code and the output. Any ideas would be welcomes.

 

Thanks,

 

Ron

 


Sorry mate I don't do java but do have experience of working with mail servers (I'm working on one myself plus other tcp server stuff).

If the server is accepting your mail its possible that if your target is a yahoo address that its been rejected because it came from PN with a yahoo address and thus their domain keys tech is probably blocking the mail. That or PN aren't sending it out any further than their own servers to prevent being reporting for spamming.

Also be sure to check your spam folders! You'd be surprised just how many people are caught out by that.

Oh yes the PN server does also refuse to deliver mail sometimes if it thinks you're a spammer - eg sending too many test mails. I've had experience of this in the past when my mail servers / clients stopped working and had to make contact with PN to get it resolved.

I need a new signature... i'm bored of the old one!