Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to implement the gmail for sending mails to the client. Now, gmail contains many tabs like "Primary", "Promotions","Social", etc., By default, the mail will be sent to the "Primary" tab. But, now I want to send to the promotions tab. How we can do it? Kindly help me.. I need thorugh "C#.NET" coding. I know how to send the email using C#, but I need mail to hit other tabs rather than "Primary" tab in gmail.
Posted
Comments
DamithSL 4-Jun-15 6:37am    
As far as my knowledge, You can't set the category of the mail when sending. it will automatically categorized by the Gmail.

1 solution

We cannot do that. SMTP protocol (the protocol being used to send the emails) is only able to send the email to the recipient's mailbox. Gmail itself categorizes the emails into different folders and so on.

However, the IMAP protocol (protocol used to access the emails) does allow you to get these folders and delete or add new emails (or even move emails from one folder to another). But, still that won't let you categorize the emails of your recipient.
 
Share this answer
 
Comments
aarif moh shaikh 4-Jun-15 7:38am    
i am agree with afzaal sir....

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