Thumela ama-imeyili nge-console nge-sendmail

Leli cala lahlolwa eKhanaima naseBuntu

1- Sifaka i-SendEmail:

apt-get install sendemail

2- Sifaka amaphakheji alandelayo adingekayo ukuze asebenze kahle nge-GMail:

apt-get install libnet-ssleay-perl

apt-get install libio-socket-ssl-perl

Manje sesikulungele ukuthumela ama-imeyili ethu. Ukuze usebenzise i-akhawunti yethu yeGMail, sithayipha ikhonsoli:

sendemail -f nombrecuenta@gmail.com -t cuentadestino@isp.com -s smtp.gmail.com:587 -u \
"Asunto" -m "Cuerpo del mensaje" -a archivoadjunto -v -xu nombrecuenta -xp clavecuenta -o tls=yes

Kuphi:

«accountname@gmail.com»Ingabe i-akhawunti yethu ye-GMail

«accountdestino@isp.com»Ingabe i-akhawunti esifuna ukuthumela kuyo imeyili yethu (uma sifuna ukuthumela kubamukeli abaningana kufanele sishiye isikhala esingenalutho phakathi kwamakheli e-imeyili)

Ku "Isihloko»Iya ngqo endabeni yeposi (uma ihamba phakathi kwezilinganiso) naku«Umzimba womlayezo»Esifuna ukukubhala (nakwezingcaphuno)

Okukhethwa kukho -a iya uma sifuna ukuthumela okunamathiselwe kwi-imeyili

«igama le-akhwunti»Ingabe igama le-akhawunti yethu yeGMail ngaphandle kwe- @

«i-akhawunti ye-password»Ingabe iphasiwedi yethu ku-akhawunti yethu ye-GMail

Manje manje iskripthi esincane esenziwe ku-bash ukuthumela uhlu lwamakheli ku-txt

#!/bin/bash
# -*- ENCODING: UTF-8 -*-
i=0
while read line
do i=$(($i+1));
sendemail -f correo@gmail.com -t $line -s smtp.gmail.com:587 -u "TITULO" -m "CUERPO DEL MENSAJE" -v -xu nombredeusuariosinelaroba -xp contraseña -o tls=yes
done < "/home/direccion/correos"
echo "Final line count is: $i";


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-11, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   UFabio.Felio kusho

    NJENGAMANJE iningi lentsha linaka i-akhawunti ye-FACEBOOK kuphela lapho lifika kufolda ye-OTHERS. IZIKHUNGO ZOKUSEBENZA zisemthethweni futhi ziqiniswe kakhulu. I-akhawunti ye-CELLULAR ne-FACEBOOK yizona ezibhekiswe kogaxekile be-neo. Ukufundiswa okuhle, okuthile okuyisisekelo kepha kuzosiza abanye ...

    1.    UFabio.Felio kusho

      Ngincoma ukusebenzisa i-php + mysql + cron kwiseva ethile yamahhala usebenzisa ummeleli njengoba kwenza abantu.

      Ngale database engu-3 yekholamu.
      I-ID (int, autoincrement, primarykey) | i-imeyili (umbhalo omncane) | ithunyelwe (i-boolean)

      Kumele umane uthole i-imeyili evela ku-database esingakayithumeli kuze kube manje.

      Sikuthumela i-imeyili, singasebenzisa into ehambelana ne-WP ukuthumela i-imeyili uma sikwi-wordpress ku-plugin noma umsebenzi weposi we-php.

      Sibhala phansi ku-database ukuthumela kuleyo imeyili bese siyahamba

      Ukuyisebenzisa njalo ngemizuzu emithathu ngomsebenzi ohleliwe usebenzisa i-cron Ukuze ungalayishi ngokweqile amaseva, noma uxwayise i-gmail noma i-hotmail. Lokhu kubaluleke kakhulu…

      Noma, iskripthi sejavascript esisebenzisa i-greasemonkey / tampermonkey esebenza esipheqululini sakho ekhasini le-gmail lapho i-imeyili yakho ivulekile. Ungasebenzisa futhi i-database ye-mysql, uma une-server ye-http ene-mysql ne-php egijima ungenza isicelo nge "ajax" ngaphakathi kweskripthi bese uthola i-imeyili. Lapho-ke yonke into ilungile thumela isicelo kuseva yendawo umazise ngokuthunyelwa ukuze akwazi ukubhala phansi.

      Ngamafuphi, amathuba angenamkhawulo. Ukuphela kwento, engasebenzi kulokho engikucacisile kumyalezo wami wokuqala, futhi akukho emthethweni.

      1.    UFabio.Felio kusho

        Kungaba semthethweni kuncike kulokhu:

        http: / / zu. wikipedia. org / wiki / I-CAN-SPAM_Act_of_2003

  2.   eliotime3000 kusho

    Kuhle, kepha lokho kuwusizo kakhulu uma ufuna ukuhlanganisa izikhohlisi bese ngaleyo ndlela wanelise umoya omile esinawo ngaphakathi.

    Noma kunjalo, ngiyabonga ngethiphu.

  3.   umabhebhana kusho

    Sawubona, i-athikili ethakazelisa kakhulu. Ngakha uhlelo oluthumela izingodo ezithile ku-akhawunti ye-imeyili kepha kunezinkulungwane zama-imeyili okufanele zithunyelwe, ngoba lelogi elishiwoyo lidala kakhulu futhi libanzi. Njengoba ngixhuma kancane ku-inthanethi, kuthatha isikhathi eside. Ngakho-ke nginokungabaza okulandelayo:

    1- Ingabe i-Sendmail ishesha ukwedlula imodyuli ye-python's smtp?
    2- Ungasisebenzisa kanjani iseshini efanayo (angazi ukuthi iseshini igama elifanele kakhulu) ukuthumela ama-imeyili amaningi?
    3- Ingabe ikhona indlela yokuthi i-sendmail ibike inqubekela phambili?
    4- Angazi ukuthi i-smtp isebenzisa uhlobo oluthile lokucindezelwa kwedatha, ukuze ivolumu yedatha ezothunyelwa yehliswe kakhulu ngoba izingodo zingumbhalo ocacile.

    Phendula ngokucaphuna
    I-Arian fornaris

  4.   orelvis kusho

    Konke okuthakazelisa kakhulu kepha ngingalivikela kanjani i-mail server yami ukuze ingamukeli ukuthumela ama-imeyili uma ungenaye umsebenzisi kuseva noma uma ingathunyelwa ivela kukheli lendawo.

    I-gracias.

  5.   pablo kusho

    Sawubona, umbhalo muhle kakhulu, kepha uma ngiwukhipha, ngithola leli phutha, ungangisiza ukulixazulula

  6.   pablo kusho

    Aug 20 15:27:29 pablo-hp-envy-15-notebook-pc sendemail [2841]: DEBUG => Ixhuma ku- smtp@gmail.com: 587
    Aug 20 15:27:32 pablo-hp-envy-15-notebook-pc sendemail [2841]: ERROR => Umzamo wokuxhuma ku- smtp@gmail.com: 587 yehlulekile: IO :: Socket :: INET6: getaddrinfo: Iphutha lesistimu
    Aug 20 15:27:32 pablo-hp-envy-15-notebook-pc sendemail [2841]: HINT => Zama ukucacisa ukuhanjiswa kweposi okwehlukile ngenketho ye-- s.
    ukubalwa komugqa wokugcina ngu: 1

  7.   isidleke kusho

    Ngiyabonga yilokho ebengikufuna.

  8.   lindokuhle kusho

    izosebenza nenye iposi le-pop3

  9.   UMark Alexis kusho

    Ngingayilungiselela kanjani ukuthi isetshenziswe nge-hotmail?