Is it possible to send skype messages from web, without using the skype desktop application.
Ex: User inputs his skype username, destination skype username and message, then probably there would be authorization request from skype, he'd enter his username and password, and then message would be sent to the recipient.
I also wander if it is possible to somehow send message to those who have chosen "Allow IMs from people in my contact list only", and sender isnt in recipients contact list.
If anyone knows, please write here or link the resources where i can find information about this.
Thanks in advance
I haven't tried it, but this looks promising:
http://www.codeproject.com/KB/cs/skypecontrolapicsharp.aspx
The skype developer blog also has an example:
http://blogs.skype.com/developer/2006/12/c_example_project_for_skype4co.html
Yes you can.First though your Skype application has to be opened.
Then in your ASP.NET project simply import the Skype4ComLib.dll
using Skype4ComLib;
then send a message to a recipient using such:
Skype snd = new Skype();
snd.SendMessage("receiversuserid", Message)
Related
Is there any mechanism in which you can prevent a user from replying to an email message? Here's the use case:
An automated system (C#.net) sends emails to a user. The action of the task
is included in the email message (e.g. RSVP link for "yes" or "no")
Instead of using the buttons/actions in the email, the user replies
to the email.
The email originally sent specifically says that the mailbox in use
is unmonitored. (in bright red box!!!)
The user doesn't actually read the email, and gets pissed off when nobody replies or his RSVP is "lost"
Clearly a user issue. I'm thinking the best recourse might be an automated reply saying the mailbox is unmonitored if a user replies to the e-mail.
Any SMTP conditions/flag which can prevent a user from replying in the first place?
I don't believe there is any setting that you can include in the original email that would stop someone from replying to an email.
If the recipient really wants to reply, they can literally copy-paste the sender's email address into a new email and reply to it that way.
Just wanted to point out that the following hack is not elegant and would result in a bad customer experience. This is the only way I could think of achieving this.
One hack that comes to my mind is that you can try to set MailMessage.ReplyToList property to an invalid email address like - abc#g#g.com. In theory, this will force the customer's email client to reply to the invalid email address instead of the original sender. We can hope that the customer's email client validates that before sending the reply.
I have not tried this myself as I don't have an SMTP server to validate. But if the SMTP server does not validate the ReplyToList value then it should work.
Again this is a super sketchy hack and might not work with all the email clients out there.
You are better off setting up an auto-reply on the mailbox.
I have already written a code in C# to send a mail to the user from my gmail and also sending a attachment if it contains. Now I need to send the invitation so that it marks on customer google calendar.My code for sending a gmail and attachment is :
public static void SendEmail(MessageModel message)
{
string from = "noreply#test.com";
if (string.IsNullOrEmpty(from)) {
throw new System.Exception("Invalid email configuration ! Missing SupportEmailAddress in Web.config.");
}
SmtpClient client = new SmtpClient();
MailMessage mailMessage = new MailMessage(from,
message.Destination,
message.Subject,
message.Body)
{
IsBodyHtml = true
};
if (message.Attachment != null)
{
Attachment attachment = new Attachment(message.Attachment, MediaTypeNames.Application.Octet);
mailMessage.Attachments.Add(attachment);
}
client.Send(mailMessage);
}
The above code works fine for sending a message and attachment to the user. Now I need to send invitation to them in so that it marks on their google calender. How can I do this?
The thing is i think you may be going about this in the wrong way. You should consider looking into the Google Calendar API. By doing a Event.insert directly into your calendar there by creating a new event. You can then do a event.update and update the event adding more attendees to the event as you so choose and they will automatically (if you choose to) be notified of invites by google.
The issue here being controlling the event itself. I would recommend looking into using a service account. You can grant the service account access to your calendar and it will be able to insert and update these events. The only drawback to this solution will be the emails sent to users notifying them of the event invite.
invite will come from the service accounts email address which is ugly.
service account invites sending notification emails seams to be buggy lately.
Second option would be to do something like an installed application where by you use Oauth2 authenticate your application once and store the refresh token the application will then pretend to be you and write to the event when ever it needs to.
refresh tokens can expire very very rarely but you still should check for this error.
invites are sent from you so you will be giving everyone your email address.
A bit of sample code for you. Google .net samples
I am using Microsoft Graph API v1.0 to list all user emails in hero card with a subject, from and mail body. I added a new button named "Reply" with card action.
CardAction(ActionTypes.OpenUrl, "Reply", value: "<<Reply URL>>")
Requirement:
When I click "Reply", a new tab should open with a specific email account (Gmail, Outlook.com, Office 365 etc.) to send the reply from.
Note:
User is already authenticated with specific account in browser.
Reply To participants is optional when I click that button
I am implementing this in Bot Framework V3
Example: I logged into my web outlook account in the browser, when I click "Reply" along with previous messages email thread, it will show us to write mail body, add participants in reply to (in case if we need to add more).
So my requirement of "Reply" button in hero card should work like as example I mentioned.
Is this even possible to provide a WEB LINK for that reply button in hero card of each email? If Yes could let me know for which type of email account supports?
I coded a website contact form with mail send and after dozens of research cannot find an answer hoping stackoverflow users can help.
The aspx.cs file signs into the specified gmail configuration to send the email HOWEVER is there a way to set the SENDER as what the user inputs in the email textbox, so instead of recieving the email from myself so when clicking "Reply" on the mailbox its not replying to myself? If that makes sense?
So the sender is not me but the sender is what the user inputs in the mail box and I receive the email FROM the input value rather than myself
From comments:
This is the solution:
set mail.From = new MailAddress(address, display name)
in Gmail, go to Mail Settings >> Accounts and Import.
Add the email account you will use as sender in "Send Mail As". (tick
as Alias)
This is the only way gmail will let you specify the from address.
Setting the From Address requires special configuration/confirmation in Gmail for each From Address (see here), or is otherwise prohibited.
You could create a generic gmail address such as no-reply-yourapp#gmail.com. Then use the ReplyToList property to set the default Reply To email address that the user will use for their reply, to the user input email address, as well as an appropriate Display Name for the sender.
So in theory, for flexibilty use different mail service such as web host provided or outlook etc and set the mail.FROM to the value from the textbox and it will be sent from the address the user has typed? Gmail being extra secure causes confusion. Got it. Thanks guys
I want to write a simple program which has a username and password field when I click the button it should display a message box saying "Successful login" and connect with my gmail account.
The code should use Http header..
http://code.msdn.microsoft.com/CSharpGmail
You should be clearer about what you want - the title says
How to connect gmail account through VC#
For that, the answer given by FractalizeR is correct
If all you want is to show a message than that's another story, try:
MessageBox.Show("MessageTextHere", "CaptionTextHere")
Or any of it's many variants