I'm reading this article : http://code.google.com/intl/zh-CN/appengine/docs/python/mail/receivingmail.html
I'd like to know, is this the right article to read to deal with mail from others sent to me ?
My Gmail is zjm1126#gmail.com, so when someone sends email to zjm1126#gmail.com, can I do something automatically with the incoming mail?
Update:
The article say:
Your app can receive email at addresses of the following form:
string#appid.appspotmail.com
Where do I set this?
is article used to deal with mail from others send to me ?
Yes
and my gmail is zjm1126#gmail.com , so someone send email to zjm1126#gmail.com,i can do something automatically use incoming mail ,yes ?
No (unless you configure GMail to forward it to the address the article tells you to use)
where to set this ???
Nowhere. You are given your appid when you sign up.
Related
I have a local python file that I'm using to send emails through sendgrid's SMTP:
gmail_sender = "example#gmail.com"
server_username = "apikey"
server_password = prod.CONFIG['sendgrid_SMTP']
server = smtplib.SMTP_SSL('smtp.sendgrid.net', 465)
server.login(server_username, server_password)
email_information['From'] = gmail_sender
server.sendmail(email_information['From'], email_information['To'],
email_information.as_string())
I'm confused about who is sending the email. I replaced gmail_sender with multiple different emails, and without having to give the password to those emails, I could send an email through sendgrid's SMTP. In the from section of the email I sent, it says the email I put as the gmail_sender plus "via sendgrid.net." I can make it seem like anyone sent the email, isn't this a security concern?
Any guidance is appreciated :)
The alternative is rather daunting. You would have to technically prove to them that every address you want to send from is actually yours.
Some services require you to prove that a domain is yours by giving you a unique cookie and telling you to publish it in the domain's DNS records. If you have control over the DNS for a domain, you have the control over the domain. But there is no similar mechanism for email - you could simply forge the sender on the email which is supposed to prove that you own the address.
Anyway, going through this ordeal for every domain you want to use is already a chore. Imagine what it would mean for clients who want to use dozens, hundreds, or even thousands of different sender addresses.
The Sendgrid terms of service have some general language about network abuse, which probably apply to using somebody else's email address. I could find nothing specific about address forgery in their ToS. Having a legal restriction in a contract (and enforcing it!) relieves them from the need to implement a technical restriction.
I'm actually aware that I can get the address which the email is sent from, but I wonder if I can get the user name of de sender too. I searched on the email module documentation but I didn't find anything about it.
Short answer: no, you can't.
Username of the sender remains between the SMTP server and the sender; it's never included in the data sent outside, unless the sender explicitly typed it into the email text. Note that there can be several hops between the originating SMTP server and the receiving SMTP server.
IMAP servers are used to access received mail; they have no idea how it was sent.
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.).
I'm trying to send email verification emails from an app I'm writing. I'm running on Linode using server = smtplib.SMTP() and server.sendmail(). For some reason, gmail is marking these messages as spam.
My mail template is:
{% if define('From', 'CQ <Invite#campusquery.com>') or define('Reply-To', 'noreply#campusquery.com') or define('Subject', "CQ: You've been invited to our beta!") %}{{fail()}}{% end %}
msg goes here
It also worked before when I made CQ be invite#campusquery.com instead. However, when this way does not allow me to define a sender.
How do I fix this?
Thanks.
What server are you sending from? There are tons of other factors involved like IP blacklists, rate of messages, whether users have marked you as spam, DNS/reverse DNS, SPF records.
You might consider signing up for an account with litmus.com to test your emails and see how you're performing on spam lists, and what you can do to improve it.
I would think that the "From" address would need to be a valid email address--e.g., have <some name>, an # and a valid host like in bob#example.com--in order for GMail to not consider it spam.
I've develop webmail client for any mail server.
I want to implement message conversion for it — for example same emails fwd/reply/reply2all should be shown together like gmail does...
My question is: what's the key to find those emails which are either reply/fwd or related to the original mail....
The In-Reply-To header of the child should have the value of the Message-Id header of the parent(s).
Google just seems to chain messages based on the subject line (so does Apple Mail by the way.)