473,662 Members | 2,704 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I write my program to send emails?

110 New Member
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 1843
Subin Ninan
91 New Member
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
11850
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 following import win32com.client
0
1149
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 used for processing the data instead of retrieving the information from the database...?
6
2672
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 number of things, such as Dear (user), your current quota is (quota), and so on. So far i can send the emails to multiple users but when it comes down to writing the message i cannot enter in more than one "rec("field)". In my database i have...
3
2959
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
1454
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 anybody have an idea what the cause of the problem is, and how I can work around? Thanks in advance, Thomas
0
1177
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 to allow this?" which means, I have to be sitting at my computer at the time I want the email to "automatically" send. I've searched the Internet, and all I found was software to install to fix this problem. I don't want that. I'm wondering...
1
1559
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 send anything! "After you verify the format of your recipient addresses, McAfee recommends that you resend those messages from your e-mail program."
0
858
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 desktop software, request to get a new cartridge etc etc. Upon submitting form, the workflow is handled by a C# web service. In this web service, after doing all MOSS 2007 related work, an email notification gets sent to IT support team. To avoid...
1
1552
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
1029
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..
0
8345
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8768
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8547
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4181
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4348
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2763
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1754
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.