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 11
ags313
Hooked
Posts: 6
Registered: ‎27-07-2017

Re: Sending emails by Java coding

What error message are you getting?

7up
Community Veteran
Posts: 15,828
Thanks: 1,583
Fixes: 17
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
Seasoned Hero
Posts: 5,731
Thanks: 2,778
Fixes: 41
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

Murphy was an optimist
Zen FTTC 40/10 + Digital Voice   FRITZ!Box 7530
BT technician (Retired)
VileReynard
Hero
Posts: 12,616
Thanks: 582
Fixes: 20
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

"In The Beginning Was The Word, And The Word Was Aardvark."

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

 

Anonymous
Not applicable

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,673
Thanks: 1,055
Fixes: 60
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?
Anonymous
Not applicable

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.

7up
Community Veteran
Posts: 15,828
Thanks: 1,583
Fixes: 17
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!