Wenn du dir nicht sicher bist, in welchem der anderen Foren du die Frage stellen sollst, dann bist du hier im Forum für allgemeine Fragen sicher richtig.
import imaplib
sent_from = ''
sent_to = ''
msg = ''
user = ''
password = ''
server = imaplib.IMAP4_SSL('imap.gmail.com')
server.login(user,password)
server.send() #how to set send options
server.logout()
I do not understand to write balance in this.how to use the "Server.send" option in this script?
How to set (sent_from = ''/sent_to = ''/msg = '')
Help me....
@fox12345: First of all you should make sure IMAP is what you want. You can not send e-mail with the IMAP protocol. Just access remote mailboxes that *you* own, or at least have the credentials to access them.
If you really want to place an e-mail in some folder in your account, then `send()` is the wrong method. It really just sends the given raw data to the server without issuing some commands first making the server actually expect you to send it data, so it will just end in an error. Possibly the server even closes the connection if you start sending unexpected binary data.
Unless you want dealing with the IMAP protocol rather directly I would recommend the `imapclient` module which abstracts a little from the protocol. You still need to know how IMAP works to use that module.
@fox12345: SMTP is the only really widespread protocol for sending e-mails. There is no other viable option. So you either find complete working code for your problem or you learn at least as much programming, Python, SMTP protocol, and proxy techniques to understand and adapt the solutions from the web search I've posted earlier.
Hmmmmmmmmmmm....The IMAP protocol is not designed to send emails. It is designed to manipulate mailboxes.To create an email and send it I can use SMTP. I correct?
If that is so how to use proxy to my code?Are you have any idea. My plan is hide to sender....what to do?
@fox12345: SMTP is just for sending e-mails. Why do you want to hide from the sender? With mails sent from an automated script!? Do I smell a wannabe spammer here?
he he........my dear friends I do not want to be a spammer. I am a beginner to python. As well as i like to write some useful tool to world. So I always searching about that. I want write untraceable mail sending tool. But i know it really impossible. But I want to complete half or my dream. So Now i want to make the base of my code and want to test it. So I want to Help...
fox12345 hat geschrieben:...I want write untraceable mail sending tool. But i know it really impossible. But I want to complete half or my dream....
Why are you dreaming about untraceable emails if you are not a spammer? No need to hide the sender if you dont do any smelly things. I question your objectives.
jerch hat geschrieben:Why are you dreaming about untraceable emails if you are not a spammer? No need to hide the sender if you dont do any smelly things. I question your objectives.
Not to excuse fox12345, but anonymity is an important asset generally. And I wish there was a really anonymous way to send E-Mail without the problem with spam and open relays. I doubt you question the motives of the Tor authors
My god, it's full of CARs! | Leonidasvoice vs (former) Modvoice
@Leonidas:
I totally agree with you about the importance of anonymity. But with email it is a different situation, where you approach someone - imho it is natural to introduce yourself at the door. The differrence to the www is the fact that people see their post boxes as private while a website is more like a public notice board where you can expect not to be asked for your identity.
@Leonidas: I see the value of anonymously sending e-mails as a person to another person or institution. There are providers of such services. As there is always *some* trace in mails, they have to come from *somewhere* from the senders perspective, so you need a provider you trust and the receiver (or the receiving mail provider) accepts mails from. Those services cost money or are secured against being used via scripts. For good reasons. What I find questionable here is the need for a scripted solution from someone behaving like the proverbial „script kiddie”.
Thanks for everyone who take their valuable time for reply me. But I do not think that you all have give me the support for complete my messed script.What I want know is how we can use a proxy to When we send a mail through SMTP & also how it should be change in my script. I do not want to be a spammer & I really want to test it. :K Please be kind enough to help me on this matter.
@fox12345: You are thinking right — as it seems you did not manage to convince anyone this isn't a script kiddie request. I can hardly think of a convincing argument anyway.