At the present time everyone is using Email (Electronic Mail) for instant messaging, business communication, Marketing, etc.Everyone use Email by using different types of browser.
Programmers can send their email by using programming language script, but also general, people sending their email by using programming language script.
Programmers make email sending script by using python language. So if any users will want to send email by using programming script them, they will need to use python IDLE, python script or an operating system command prompt.
Step 1. Open your python IDLE or python script or an operating system command prompt.
if you will want to create a python script then just create a text file and named if filename.py and if you open your operating system default command prompt then first type python then start your mission.
So lets start,
fromAddress = 'targetemail@example.com' (Write your target email address)
toAddress = 'youremail@example.com' (Write your email address)
msg = "Subject:Important email\n\n Check this" (Your desiered message)
import smtplib (SMTP = Simple Mail Transfer Protocol)
server = smtplib.SMTP("mail.your isp.com",25) (your isp name and port no.)
server.sendmail(fromAddress, toAddress, msg)
{}
If you are interested in sending email by using python script then you will need to copy these green color scripts and paste into your python IDLE or python script or operating system command prompt.
Programmers can send their email by using programming language script, but also general, people sending their email by using programming language script.
Programmers make email sending script by using python language. So if any users will want to send email by using programming script them, they will need to use python IDLE, python script or an operating system command prompt.
Step 1. Open your python IDLE or python script or an operating system command prompt.
if you will want to create a python script then just create a text file and named if filename.py and if you open your operating system default command prompt then first type python then start your mission.
So lets start,
fromAddress = 'targetemail@example.com' (Write your target email address)
toAddress = 'youremail@example.com' (Write your email address)
msg = "Subject:Important email\n\n Check this" (Your desiered message)
import smtplib (SMTP = Simple Mail Transfer Protocol)
server = smtplib.SMTP("mail.your isp.com",25) (your isp name and port no.)
server.sendmail(fromAddress, toAddress, msg)
{}
0 Comments