Sending emails by Java coding
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Sending emails by Java coding
Sending emails by Java coding
28-07-2017 9:41 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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.
Re: Sending emails by Java coding
28-07-2017 9:58 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
What error message are you getting?
Re: Sending emails by Java coding
28-07-2017 11:59 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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.
Re: Sending emails by Java coding
29-07-2017 10:53 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
@ronw wrote:
Can anyone tell me, is the Plusnet email server relay.plus.net?
Zen FTTC 40/10 + Digital Voice FRITZ!Box 7530
BT technician (Retired)
Re: Sending emails by Java coding
29-07-2017 8:31 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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."
Re: Sending emails by Java coding
30-07-2017 3:47 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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.
Re: Sending emails by Java coding
30-07-2017 3:56 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi 7up,
Thanks for replying.
I've posted the code and the output. Any ideas would be welcomes.
Thanks,
Ron

Re: Sending emails by Java coding
30-07-2017 4:06 PM - edited 30-07-2017 4:07 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
@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?
Re: Sending emails by Java coding
30-07-2017 4:20 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hi
Yes, I saw that.
However the email was not received by either recipient. (Both recipients were me, for testing purposes.)
Thanks,
Ron.
Re: Sending emails by Java coding
30-07-2017 4:26 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator

Re: Sending emails by Java coding
30-07-2017 4:31 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Re: Sending emails by Java coding
30-07-2017 7:54 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
@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.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Other forums
- :
- Tech Help - Software/Hardware etc
- :
- Sending emails by Java coding