send_email

Ai o întrebare legată de PHP? Incercăm să îi găsim soluţie. Sau poate doar vrei să publici un cod interesant.

Moderatori: Zamolxe, Moderatori


vaida.dan
Average Member
Mesaje: 61
Membru din: Joi Apr 05, 2007 12:30 pm
Contact:

Mesajde vaida.dan » Vin Sep 07, 2007 11:51 am


Cosmin Chiru
Senior Member
Mesaje: 251
Membru din: Joi Apr 19, 2007 3:44 pm

Mesajde Cosmin Chiru » Vin Sep 07, 2007 12:12 pm


vaida.dan
Average Member
Mesaje: 61
Membru din: Joi Apr 05, 2007 12:30 pm
Contact:

Mesajde vaida.dan » Vin Sep 07, 2007 12:16 pm


alopia
Junior Member
Mesaje: 36
Membru din: Dum Sep 02, 2007 10:53 pm
Contact:

Mesajde alopia » Vin Sep 07, 2007 4:31 pm


Cosmin Chiru
Senior Member
Mesaje: 251
Membru din: Joi Apr 19, 2007 3:44 pm

Mesajde Cosmin Chiru » Vin Sep 07, 2007 4:36 pm


alopia
Junior Member
Mesaje: 36
Membru din: Dum Sep 02, 2007 10:53 pm
Contact:

Mesajde alopia » Vin Sep 07, 2007 4:51 pm

Foloseste mai multe metode la alegere. De la functia mail (dar nu are rost sa setati aceasta metoda pentru ca nu mai beneficiati de avantajele PHPMailer) pina la SMPT.

Daca alegeti SMPT conectarea la serverul de mail se face via fsockopen() deci nu are nici o legatura cu functia mail().

Folosesc PHPMailer pe un numar de peste 100 de situri gazduite pe aproximativ 30 de servere diferite si n-am avut niciodata probleme. Lucru care nu-l pot spune despre functia mail()...

Aveti o lista scurta cu ce poate PHPMailer:
- Can send emails with multiple TOs, CCs, BCCs and REPLY-TOs
- Redundant SMTP servers
- Multipart/alternative emails for mail clients that do not read HTML email
- Support for 8bit, base64, binary, and quoted-printable encoding
- Uses the same methods as the very popular AspEmail active server (COM) component
- SMTP authentication
- Word wrap
- Address reset functions
- HTML email
- Tested on multiple SMTP servers: Sendmail, qmail, Postfix, Imail, Exchange, etc
- Works on any platform
- Flexible debugging
- Custom mail headers
- Multiple fs, string, and binary attachments (those from database, string, etc)
- Embedded image support

alopia
Junior Member
Mesaje: 36
Membru din: Dum Sep 02, 2007 10:53 pm
Contact:

Mesajde alopia » Vin Sep 07, 2007 5:01 pm

:lol: sunt fan PHPMailer dupa cum observati. Vroiam sa mai accentuez ca trimiterea mailurilor prin SMPT se poate face chiar si prin alt server decit cel pe care ruleaza scriptul. Practic se comporta ca un client clasic de mail gen Outlook, Thunderbird, etc ...

Cosmin Chiru
Senior Member
Mesaje: 251
Membru din: Joi Apr 19, 2007 3:44 pm

Mesajde Cosmin Chiru » Vin Sep 07, 2007 5:50 pm

Ah, ok, la fsockopen() nu ma gandisem :)

vaida.dan
Average Member
Mesaje: 61
Membru din: Joi Apr 05, 2007 12:30 pm
Contact:

Mesajde vaida.dan » Vin Sep 07, 2007 7:22 pm

Am citit install guide-ul. Tre sa editez php.ini... yeah right... not today...
Am SMTP pe host si nici nu tre autentificare la el (fol alt script pe server care trimite mail prin SMTP perfect).
Eu ziceam de functia respectiva de mai sus, ce ar trebui editat/adaugat la ea sa trimita si pe yahoo, atat.

alopia
Junior Member
Mesaje: 36
Membru din: Dum Sep 02, 2007 10:53 pm
Contact:

Mesajde alopia » Dum Sep 09, 2007 4:08 am


alopia
Junior Member
Mesaje: 36
Membru din: Dum Sep 02, 2007 10:53 pm
Contact:

Mesajde alopia » Dum Sep 09, 2007 4:10 am


Avatar utilizator
Amenthes
Senior Member
Mesaje: 1370
Membru din: Lun Dec 12, 2005 8:00 am
Contact:

Mesajde Amenthes » Dum Sep 09, 2007 9:53 am


luciansabo
Junior Member
Mesaje: 49
Membru din: Dum Ian 04, 2004 2:06 pm

Mesajde luciansabo » Dum Sep 09, 2007 12:51 pm

Functia mail din PHP foloseste fie sendmail, fie un smtp relay.

PHPMailer face cam acelasi lucru, numai ca suporta in mod direct si qmail si autentificare SMTP.

void IsMail ()
void IsQmail ()
void IsSendmail ()
void IsSMTP ()

Deci ca metoda de transmitere nu sunt diferente. Ambele folosesc la baza smtp sau sendmail. Nu se pune problema ca PHPMailer trimite mai bine.
PHPMailer este o clasa dedicata, si este normal sa aiba unele avantaje legate de implementare. Eu folosesc PHPMailer fiindca nu depind de configuratia serverului. Oricand pot schimba modalitatea de transmitere din script... nu fiecare data am acces la php.ini sau nu mereu pot folosi un relay server ori sendmail.
Eu am avut probleme mari cu PHPMailer fiindca se opreste la prima eroare SMTP in loc sa continue procesarea. Daca stii cum sa setezi serverul mai degraba vei avea probleme cu phpmailer decat cu mail().
Recomand Swift Mailer.

Features
Persistent connectivity improves performance
Connection types selected by user - extendable
Complete header control with RFC 2822 requirements handled
Internationalization support (i18n)
Connection redundancy support
Load balancing and/or throttling support
SSL & TLS Support - for Gmail servers
Embedded images or other file types
Full MIME 1.0 library included (create multipart messages, attachments etc)
Batch mail processing
Smart runtime caching (in small, self-maintained packets)
Send attachments of any size even with PHP's 8MB Memory Limit
Support for multiple attachments
Lossless protection against header injection (encode, don't strip)
Set message priority
Request read receipts
Pluggable SMTP authentication (LOGIN, PLAIN, MD5-CRAM, POP Before SMTP)
Anti-flooding support for servers with limits on emails-per-connection
Bandwidth monitor included
Extensive event-driven plugin support (easy to write)

alopia
Junior Member
Mesaje: 36
Membru din: Dum Sep 02, 2007 10:53 pm
Contact:

Mesajde alopia » Dum Sep 09, 2007 10:16 pm



Înapoi la “Cod PHP”

Cine este conectat

Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 14 vizitatori