Python Email Validation - python

I have an old list of email addresses. I want to write a Python script to check which emails are still active and to which email can be sent. I tried using the validate_email package but it doesn't seem to work (e.g. when I input my own email address it says it's not deliverable). Any thoughts on how to do this in Python? Thanks.

Related

How to trigger a python script on receiving email on outlook with a specific subject?

I have created a python script where I search the inbox for a mail with a specific subject.
As soon as the mail is found , my script reads the body, extracts the information and uses it to create an output response table and send mail to the sender with the response.
This entire process is on demand and I do not want to run my script 24x7 to keep on reading the inbox and check if any email with the subject has arrived.
Are there ways through which I can create a trigger so that whenever I receive an email with that subject in my inbox, the python script gets executed and does all the external work as per the code.
What are the different solutions that can be implemented to achieve the desired results.
Thanks in advance.
Which version of Outlook are you using? Office 365 Outlook have built in "Trigger" & "Event" function
I don't use Outlook so I don't know how it would call your script, but you could attach to "When new email arrive" trigger.

Simple SMTP Processing point

I'm working with a third party service that will send update information on some machinery to an email address I specify. What I want to do is take that email, parse out the the owner of a particular piece of hardware, and send that owner an email update. To be clear, I can't send the first email directly to the end user because the third party source I'm working with doesn't have my end user's email address data.
I've been able to do the two parts [(1)receiving+parsing, (2) sending new message ] independently using the smtpd and smtplib python packages, but I'm not able to use them together. Python doesn't have a builtin MTA so any outgoing messages I send with smtplib are intercepted by the smtpd.SMTPServer. Is there any way I can combine these two parts (receiving+parsing and sending an update) with a simple script without having to invest in a big smtp server package like Lamson?

Read through an email and parse it into strings with python

I am wondering if it is possible to read through an email and parse the subject of the email into a string. I have a device that sends an email to specific inbox every time there is an error with the device. I want a script to read through the email as soon as it arrives in the inbox and get the device ID from the subject line and store it into a string. I was thinking I could use python because there are email modules for it, and it is what I'm most comfortable with. Would this be possible in Python? Or any other language for that matter? I have looked online, but I could not find anything that pertains to what I want it to do. Is this even possible? Thanks!

How To Create a draft email?

I want to write a python that can sends data to a draft message, but NOT Send the mail directly.
Situation:
I'm a 3D animator. After done some shots, we need to send email(not internet, just in our company) to Lighting Team.
So we have some mail form, but sometimes we need to fix some words manual(version,texture..etc).
like below:
Shot Name : XXXX_seqXXX_scXXX
File Locate(hair + cloth) : please import X:\XX\XX\XX\XXX_ABC.ma
File include:
XXX_hair **(use version 1)**
XXX_cloth
ZZZ_cloth **(No texture)**
any problem please tell me.
Thanks.
Ezylryb
Question is:
Now I can write into a file, but I don't know how to open mail software(win7 Livemail) and create a new mail has these content. I'm try to use smtplib, but it will send mail directly..
Could anyone help me??
Many Thanks!!!!
Ezylryb
==============================
Finally, I write HTML code into a .html file, and a eml file with email address + Title + CC, and use os.startfile to open both files.
And I can copy/paste to draft email ^O^.
Coz we need some chinese words, so use big5 code in eml, and use qupori module to decode MIME words to Chinese words in html file.
A "draft" is a feature which your email client (in this case Win7 livemail) implements by itself. It's more or less just an email in a mailbox that the client hasn't sent yet. Mail folders like your "outbox" etc. are similar.
It's not something that Python has access to. If the mail client uses a standard mailbox format, you might be able to create the email and write it into the mailbox using mailbox module. If not, the best you can do is to write out your draft email into a file and then open that in your mail client and manually edit it.

send sms from gmail using python script

I am trying to work for sending sms from gmail using python.
I have tried many solutions but it didnt worked.
I tried to use libgmail but seems to be deprecated. Even I am not able to find how to send sms from gmail to jawwal where as actually gmail sends free sms to jawwal.
My code is:
import libgmail
from TextMessaging import *
sender = Sender(<username>, <password>)
txtM = TextMessage(subject, body)
receiver = Receiver("<phone no>", "Jawwal")
sender.sendMessage(receiver, txtM)
in this, on sender it gives error as expected string or buffer
and for reciever, i dont know whats carrier for jawwal like
CARRIERS = {"Alltel":"alltelmessage.com",
"ATT":"mobile.mycingular.com",
"Rogers":"pcs.rogers.com",
"Sprint":"messaging.sprintpcs.com",
"tMobile":"t-mobile.net",
"Telus":"msg.telus.com",
"Verizon":"vtext.com"}
Kindly give me on any information how to send sms to gmail using python script.
Thanks
Perhaps you would want to use one of these services:
[https://www.twilio.com/sms][1]
[http://www.clockworksms.com/][2]
They provide REST API options.
I know this is an old question, but just posting for someone searching for an answer.
"As of April 1, 2014, sending SMS messages to phone contacts through Google Chat in Gmail was
discontinued for all supported mobile operators."
https://support.google.com/chat/answer/112176?hl=en
I think the carrier's email address for your phone is as such:
jawwal.com.country_code
Replace country_code with the appropriate URL extension (.sa, .lb, etc.).

Categories

Resources