Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8333077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:53:57+00:00 2026-06-09T02:53:57+00:00

I have a IMAP server host name : xyz.com. And my SMTP host name

  • 0

I have a IMAP server host name : xyz.com. And my SMTP host name is : comcast.net.

Now when I send emails via Outlook it automatically shows my ID [sender ID] as : myusername@xyz.com and not myusername@comcast.net.

I would like to achieve the same using JavaMail API.

When I use JavaMail API, it shows the sender as myusername@comcast.net. I understand this is the way it works. IMAP for receiving emails and SMTP for sending emails.

However, I would like to develop the behavior similar to that of Outlook where it sets IMAPs server hostname, instead of the SMTP’s server hostname, in the sender ID.

Thanks & Regards,
Ravikiran Mane.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T02:53:58+00:00Added an answer on June 9, 2026 at 2:53 am

    I think you’re talking about the difference between what you put in the From header of the message (using the setFrom method), and what user name you use when you login to your mail server to send the message (using the connect method). Normally they would be the same. Your mail server may or may not allow you to set a different address in the From header. Some mail servers will require you to verify that the alternate From address is actually your address before they will let you send a message with that in the From header.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an IMAP-Server. Now I am searching a way to force the
I have a python code that connects to IMAP server via IMAP4_SSL, and everything
I'm trying to send an email using the GMail SMTP server. I have the
Having to interact with several different email servers via IMAP (using javamail), I have
In my rails application I have a rake task that reads emails using imap.
Hey bit of a beginners question here, I have connected to an imap server
I'm using the MailSystem.NET OS library for handling IMAP. I have a problem with
We have begun to use the EWS Managed API to send email via MS
Is there a method of accessing an Exchange server that does not have IMAP
Our network admins have disabled IMAP and POP for our exchange server, but do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.