473,799 Members | 3,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Automatic emails

30 New Member
Hey guys,

I don't have an issue right now but I am starting a trading website similar to eBay and I cannot get my head around one thing. How do you code so that emails are sent out automatically without any user input/events.

Like when an eBay auction ends, you the seller would receive an email telling you that it ended. Or if say you have a yearly subscription to something and it's about to end, an email would be sent out telling you that the subscription is about to end.

These emails are sent out automatically, but I don't know how they work. Is it scripts on the server somewhere or in the database?

Please let me know.

Thanks
May 4 '08 #1
5 1743
ronverdonk
4,258 Recognized Expert Specialist
You'll need SOME action to send out emails. This could be the result of a regularly initiated job (like a cron job) or the result of another action such as the closing of a bid (which in itself requires some action).

Ronald
May 5 '08 #2
mlevit
30 New Member
You'll need SOME action to send out emails. This could be the result of a regularly initiated job (like a cron job) or the result of another action such as the closing of a bid (which in itself requires some action).

Ronald
But what happens if the auction closes without any bids on it. Then there has been no user input and therefore no action has been initiated by the user. And with cron jobs, that would require you to set the date/time for the actions to take place, but again in terms of the auction example, auctions end at any time and straight after they have ended the emails are sent out by the website.

I just can't wrap my mind around this.
May 5 '08 #3
Markus
6,050 Recognized Expert Expert
But what happens if the auction closes without any bids on it. Then there has been no user input and therefore no action has been initiated by the user. And with cron jobs, that would require you to set the date/time for the actions to take place, but again in terms of the auction example, auctions end at any time and straight after they have ended the emails are sent out by the website.

I just can't wrap my mind around this.
Surely there must be some timer in place? When this timer reaches the end of it's run it'd initiate some other action to say that the auction has ended and do the relevant actions.
May 5 '08 #4
Atli
5,058 Recognized Expert Expert
But what happens if the auction closes without any bids on it. Then there has been no user input and therefore no action has been initiated by the user. And with cron jobs, that would require you to set the date/time for the actions to take place, but again in terms of the auction example, auctions end at any time and straight after they have ended the emails are sent out by the website.

I just can't wrap my mind around this.
Nothing can ever happen without some sort of a action taking place.
In your eBay scenario, I would guess they have set up a cron-job that fires up every minute or so and checks if any auctions need to be closed.
May 5 '08 #5
TheServant
1,168 Recognized Expert Top Contributor
Surely there must be some timer in place? When this timer reaches the end of it's run it'd initiate some other action to say that the auction has ended and do the relevant actions.
Wouldn't you need it running the timer on an open page on the server or something?

What about making the auction so that once the time is <0, ie bidding is over, the person is stopped from bidding, and then just have a cron job which runs every 10mins to check the database for items that have expired and send an email to the owner?
You will need another variable 'email_sent' which will be 0 when bidding, and once the cron job has sent the email it changes it to 1. That way you won't spam someone every 10 mins!
May 5 '08 #6

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

Similar topics

1
2894
by: dan glenn | last post by:
I'm creating HTML emails from a PHP site and sending them out to an email list (just about 40 people so far are on this list). I've tested and confirmed that these emails work in yahoo.com's webmail. And I know they work on *my* Outlook Express. But I have one person (I know of) who gets the emails as plain text, so she sees the HTML code for the email instead of its proper representation. She has, like myself, OE6, and other html emails...
3
2786
by: JP SIngh | last post by:
Is there a way to automatically execute code in ASP? I need to send reminders for one my applications and need some suggestions how I can send reminder emails automatically. Many thanks
5
23808
by: Kun | last post by:
i have the following code: ---------------------------------- import smtplib from email.MIMEText import MIMEText fp = open('confirmation.txt', 'rb') msg = MIMEText(fp.read()) From = 'xxxx@xxxx.xxxx.edu'
2
1502
by: leeroy881 | last post by:
Is there a way to automatically import incoming emails into a SQL Server Database? I know it is inefficient, but we have to run a number of rules on the email after it is received. Store it in a database and be able to connect other things, meetings, contacts, etc. Moving it back and forth in chunks can be difficult and the overhead could spiral out of control. So we were thinking of moving it to the DB as it was retrieved. What do you...
1
2839
by: shubhrarustagi | last post by:
hi, I'm a beginner developer and one of my first tasks is to develop automatic emails application in .net. We need to send automatic emails to users whose credit cards are expiring, create email templates... I've no idea how it is done in .Net. Any suggestions would be great!! Thanks,
0
3439
by: =?Utf-8?B?Q2hhcmxlcw==?= | last post by:
Like many people, I normally use Yahoo! Mail via the web and like to keep all my emails stored on the Yahoo! server. However sometimes I can’t get access to a PC/the web and I download my emails to a PDA/palmtop via POP3. The PDA uses Windows Mobile software. Since using the PDA, I have had the problem of emails disappearing from the Yahoo! server. However I think I now understand how to avoid this. It seems that Windows Mobile is...
5
1766
AllusiveKitten
by: AllusiveKitten | last post by:
Hi all, I really hope I can explain myself properly, I have set up coding to send multiple automatic emails which is working super! Each email that is being sent I receive the security Pop up box that say someone is trying to send an email on behalf of myser. My question is, is there a code I can put in for when someone presses the No button because at the moment when it is pressed, I am getting a debug error. Thank you for you help AK
1
2052
by: ramyabhaskar | last post by:
I have a MS access database which has to send emails at regular intervals. I am using VBA to do the project. I am new to this. So I am wondering how to send the automated emails to Outlook from Access at regular intervals. Thanks for the help :) Ramya
2
10460
by: anijos | last post by:
By default, the iPhone will only check for new emails manually when you open the Mail screen or when you tap the refresh icon (the icon in the lower left screen of the email list). You can configure your iPhone to automatically check for new emails by following these easy steps. Tap on the Settings icon in the home screen and tap the Mail button. In the new screen that slides over, look for the Auto-Check option in the Messages section. ...
0
9688
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9546
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
10490
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10243
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
10030
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
6809
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
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
5590
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4146
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

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.