Click here to Skip to main content
15,907,326 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi everybody,
I am developing a windows application, and in that i have to send mail from the email id that the user given. But now i am thinking about , i wil create my own id and from that i will send, but i have to display the from mail id in their inbox as user's mail id, and also while they clicking on the reply button from the recipients mail, it will show the user's mail id instead of showing my mail id. Is there any way to solve this pblm, So pls help me by providing any code.

Thanking you.
Posted

Why not just send it from the user ? You can make your id the name it sends from, but still send it from theirs. You can't send it from yours and have the mail program at the other end lie about who the sender was.
 
Share this answer
 
Please don't push 'answer' to ask more questions, edit your post.

Any of the examples for sending emails that you've been reading after your google search will contain code to set the 'from' address. You can set that to anything you like. The issue is, you want the reply address shown and the address it gets sent back to, to be different. That is the bit that is impossible. What ever you set the reply address to, is what the mail program on the other end will reply to.
 
Share this answer
 
Thank you for your reply,

But i have seen that ,some times we will get the mails from our friends with the advertisements of some other websites, its not sending by our friends , it is actually sent from the website mail id.How will they do?
I dont have any idea about that, so please help me by providing a solution

Thanking you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900