javagmailroutesmailgunincoming-mail

How to route mails from gmail to mailgun?


I have just started using mailgun. I am facing an issue. Lets say my domain is test,I have done this

abc@gmail.com--> support@test.mailgun.org --> myAccount@gmail.com

SO I am able to route incoming msgs coming to my gmail account, Now I want if I reply from gmail account to the particular user it should appear like that it is sent from support@test.mailgun.org.

myAccount@gmail.com --> abc@gmailc.com (appeared as it is sent from support@test.mailgun.org)

is it possible???? Language:- Java


Solution

  • Thanx to @Andersen, I got the solution. In gmail we have option in which we can change our mail id and make it look like it is coming from some different id while replying.

    1) Go to settings in gmail 
    2) Click on Accounts
    3) Send mail as: Click on Add another email address you own
    4) Provide the email id you wish to appear as "Sender ID"
    5) provide SMTP connection details which you can see once you login to your mailgun account and click on domain.
    

    enter image description here

    6) Save the settings, now when you are replying we can change from id to our custom domain id.
    

    Enjoy