473,505 Members | 15,798 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to send automatic emials in python

1 New Member
HI,

Can anybody tell me how to send the emails automatically in pyhton?

Thanks,
Giri
Oct 3 '11 #1
1 2335
bvdet
2,851 Recognized Expert Moderator Specialist
Giri,

Your question is too vague. Can you clarify what you want to do and show us the code you have tried? Sending an email is fairly simple:
Expand|Select|Wrap|Line Numbers
  1. import smtplib
  2. sobj=smtplib.SMTP("smtp.xyz.net")
  3. sobj.login("abc@xyz.net", "password")
  4. sender="abc@xyz.net"
  5. rec="zzz@xxx.com"
  6. msg="""From: abc@xyz.net
  7. Subject: SMPT test
  8. Text"""
  9. sobj.sendmail(sender,rec,msg)
  10. sobj.quit()
Oct 3 '11 #2

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

Similar topics

0
1017
by: Rick Hilburger | last post by:
My new non-profit web site is www.getcet.org It's about automatic flow chart generation. I have a program that automatically draws a flow chart next to Python code so that you can see and...
0
3673
by: David Burson | last post by:
Hi, I have a VB.NET windows app that needs to automatically send a simple text email when my users run a new version of the app for the first time. I thought this would be simple, but after...
1
2825
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...
2
1959
by: RYAN1214 | last post by:
How can I use this random password code, and then insert the password into email which is sent to the user after the registration has been finished? thx <html> <head> <title>Javascript:...
1
3873
by: ImLisnin | last post by:
I am using Access 2003 and I've barely got the basics under control. I've created a form that has a running sum of items for what is on hand when items are removed. I also have min requirement on...
3
7998
by: skris | last post by:
Hi, I started learning python a month ago.My problem now is, I need to send a mail to my gmail account using a python script.Can this be done? I did try out a lot of python codes but none of...
2
1779
by: praveenpandey29 | last post by:
Hello, How can we sent mail to our client on particular time without any admin actiion.? anyone can solve this problem using c#. Thanks Praveen Pandey
18
2363
by: Grant Edwards | last post by:
Could whoever is responsible for the gateway that is grabbing my postings off of Usenet and e-mailing them out please fix the headers in the mail messages so that I don't get the bounce messages?...
0
1715
by: Roba roro | last post by:
hi , i'm trying to sned a mail in my web (ASP.NET) ,i want to be able to send mails to my clients who have hotmail yahoo or gmail accounts....from different accounts also .... in web.config ...
6
7827
by: mulamootil | last post by:
Hi, I have few tables and i am populating them using respective forms. However on one of the tables, there are 10 fields out of which 2 fields, I would like some other user to fill it. Is there a way...
0
7307
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,...
0
7370
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...
1
7021
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...
0
5614
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5035
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3188
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...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1532
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 ...
0
409
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...

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.