12 Replies - 1330 Views - Last Post: 04 January 2010 - 10:49 PM Rate Topic: -----

#1 SexySquirrel  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 97
  • Joined: 30-August 09

Send email

Post icon  Posted 01 January 2010 - 06:13 PM

I'm having a bit of trouble sending an email message to my gmail email. I have been searching on doing this for quite a while without being successful :( Can anyone help me?? And if it isn't to much, how to retrieve/read email from gmail server. :) Any help, links, or tutorials would be great, thanks in advanced :)

Is This A Good Question/Topic? 1
  • +

Replies To: Send email

#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 4316
  • View blog
  • Posts: 12,096
  • Joined: 18-April 07

Re: Send email

Posted 01 January 2010 - 06:30 PM

Well you must have not looked very hard because this type of thing is commonly discussed on the web. Just doing a search can bring up multiple results that show how to do this. Here is one link that shows some code that can get you started...

Sending Email in C#.NET through Gmail

The trick here is that gmail uses SSL so you have to setup your credentials and you have to use the EnableSsl property. Good luck to you. :)
Was This Post Helpful? 1
  • +
  • -

#3 SexySquirrel  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 97
  • Joined: 30-August 09

Re: Send email

Posted 01 January 2010 - 06:49 PM

I guess not...thanks man :)
Was This Post Helpful? 0
  • +
  • -

#4 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1638
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Send email

Posted 01 January 2010 - 07:14 PM

Also, had you utilized the search feature here on Dream.In.Code you would have found this: Send email through Gmail with C# :)

Happy Coding!
Was This Post Helpful? 0
  • +
  • -

#5 SexySquirrel  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 97
  • Joined: 30-August 09

Re: Send email

Posted 01 January 2010 - 10:46 PM

View PostPsychoCoder, on 1 Jan, 2010 - 06:14 PM, said:

Also, had you utilized the search feature here on Dream.In.Code you would have found this: Send email through Gmail with C# :)

Happy Coding!

Yeah, I tried searching for how to retrieve or read email from the gmail server on there with no luck and I also googled "How to read email messages from gmail" with no luck as well...can you guys help me out one last time? lol :)
Was This Post Helpful? 0
  • +
  • -

#6 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1638
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Send email

Posted 01 January 2010 - 11:06 PM

Seems we have turned into a Google? :P

This link looks promising, if not try here.

This person created a Gmail wrapper you might find handy as well, along with a Gmail API on SourceForge.
Was This Post Helpful? 0
  • +
  • -

#7 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1638
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Send email

Posted 01 January 2010 - 11:21 PM

Also, I wrote a snippet on Getting your Gmail contact list with the Google data API (instructions on how to download the API from Google) that may help as well. I'm working on a Gmail API library (not sure when it will be done though) but will post it when it's done on our website.
Was This Post Helpful? 0
  • +
  • -

#8 SexySquirrel  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 97
  • Joined: 30-August 09

Re: Send email

Posted 03 January 2010 - 05:24 PM

View PostPsychoCoder, on 1 Jan, 2010 - 10:06 PM, said:

Seems we have turned into a Google? :P

This link looks promising, if not try here.

This person created a Gmail wrapper you might find handy as well, along with a Gmail API on SourceForge.

Quick question for the first link: I can't do this with Microsoft Visual C# 2008 alone?
Was This Post Helpful? 0
  • +
  • -

#9 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1638
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Send email

Posted 03 January 2010 - 06:23 PM

What do you mean? You mean without using some sort of API? Yes you can, this link (provided above) uses nothing but the .Net Framework and it's classes. So I guess I'm not understanding what you're asking?
Was This Post Helpful? 0
  • +
  • -

#10 SexySquirrel  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 97
  • Joined: 30-August 09

Re: Send email

Posted 03 January 2010 - 06:47 PM

View PostPsychoCoder, on 3 Jan, 2010 - 05:23 PM, said:

What do you mean? You mean without using some sort of API? Yes you can, this link (provided above) uses nothing but the .Net Framework and it's classes. So I guess I'm not understanding what you're asking?

I think I'm confused..
It says "Read emails in GMail account from your ASP.Net application"
And this gave me an error..
For the first line, it says that Security does not exist in the namespace "System.Web"(are you missing a reference?)
And for the rest: The Type or namespace "UI" does not exist in the namespace "System.Web"(are you missing a reference?)
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

Am I doing something wrong?
Was This Post Helpful? 0
  • +
  • -

#11 SexySquirrel  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 97
  • Joined: 30-August 09

Re: Send email

Posted 04 January 2010 - 08:04 PM

So any thoughts?? I'm currently downloading ASP.Net
Was This Post Helpful? 0
  • +
  • -

#12 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1638
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Send email

Posted 04 January 2010 - 08:08 PM

You dont "download" ASP.NET. ASP.NET is just a Framework for web applications using one of the .Net languages (such as C# or VB.NET).
Was This Post Helpful? 0
  • +
  • -

#13 SexySquirrel  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 97
  • Joined: 30-August 09

Re: Send email

Posted 04 January 2010 - 10:49 PM

Ohh I see..thanks for explaining.
But why are some lines of code giving me errors?(Top post explains it better.)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1