473,378 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Can I write my program to send emails?

110 100+
I am writing a program that will periodically scan for changes in a file, and if that file changes I need it to send out an email based on the email field that the user fills in.

My question is, can I have my program send emails automatically based on tests, and if so do I have it done thru an account like myprogram@gmail.com? Is there a way to tell my program how to send an email without some established webmail server like yahoo or gmail?
If I can't have it access internet protocols and send its own emails without an email address established somewhere is there a domain that interfaces with programs well that I would be able to program with? Like teach my program to send an email thru a gmail account?

I hope that comes across clear enough. Thanks for the help in advance.
Oct 23 '10 #1
1 1826
Yes, you can send emails in c# using SmtpMail class. It requires host address, port, from username, password, to user, subject, message as parameters. You can check host address, port, etc of hotmail, gmail, yahoo, etc using google.

But in my case, i created a new hotmail account dedicated for this purpose as hardcoded username and passwords in code can be easily decompiled. Also, hotmail used to block my account whenever my program sends an email. It works temporarily,.
Oct 24 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

40
by: ian | last post by:
Hi, I'm a newbie (oh no I can here you say.... another one...) How can I get Python to send emails using the default windows email client (eg outlook express)? I thought I could just do the...
0
by: vijay_kerji | last post by:
Dear Friends, Is it efficient and correct way to utilize web service to query/Update the database and send emails to recipients based on the retrieved data? In other words can web service be...
6
by: slider | last post by:
Hey all i am using Access 2003 on Win Xp and i have been trying to make this code send emails to the users stored on each record. So far is works, except in the body of the email i need it to say a...
3
by: drnorbert | last post by:
What is the best way to receive and send emails in MsAccess? Could this be done without Outlook automatation?
3
by: Thomas Weise | last post by:
My app attempts to send eMails via SmtpClient. This works with some addresses, but for instance a mail server hosted by godaddy always rejects the mails. The reply is "Relay access denied". Does...
0
by: manontheedge | last post by:
I'm trying to automatically send emails through VB, through Microsoft Outlook 2003, but get the security message ... "A program is trying to automatically send e-mail on your behalf. Do you want...
1
by: =?Utf-8?B?eWVsbG93YnVn?= | last post by:
I have Windows Vista and when I try to send emails (new or replies), I get an error from McAfee saying to check the domain of the recipient and try sending again from my email program. I can't...
0
by: gauravbhati | last post by:
Hello, The task is to send emails in batch at specific times and not each time if user clicks on submit. Details: I have an InfoPath form which employees will use to putup request to update their...
1
by: JohanKotze | last post by:
I create a email form in Access that I want to use to send emails to my clients. Can someone help with the code. If its possible I can send the DB in zip format.
1
by: nazzzzz | last post by:
can anyone help me to send emails to ids in database using vb.net and microsoft outlook thanks in advance..
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.