This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import states.LiveState; | |
import states.PeerState; | |
import states.state.IConnection; | |
import flash.net.NetStream; | |
public class Connections | |
{ | |
private var peerState:PeerState; | |
private var liveState:LiveState; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$objMail = new Lib_Sent(); | |
$objMail->to = array('email кому отсылаем письмо'); | |
$objMail->from = 'email от кого будет письмо'; | |
$objMail->subject = 'Заголовок письма'; | |
$objMail->body = 'Текст письма.'; | |
$objMail->add_attachment("Содержание атача. Предварительно нужно считать из файла", | |
"название файла", "application/octet-stream"); | |
$objMail->send(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from django import forms | |
from django.core.validators import email_re | |
from django.utils.encoding import smart_unicode | |
from django.utils.translation import ugettext_lazy as _ | |
import re | |
# Наше поле для валидации | |
class ContactField(forms.Field): | |
def validate(self, value): |
NewerOlder