Adds the smtp host field
15215
private function AddSmtpHostField()
    {
        $name = 'SmtpHost';
        $field = Input::Text($name, $this->settings->GetSmtpHost());
        $this->AddField($field);
    }
1258326
private function AddMailText1Field()
    {
        $name = 'MailText1';
        $this->AddRichTextField($name, $this->changePassword->GetMailText1());
        $this->SetRequired($name);
    }
588483
private function AddEMailField()
    {
        $name = 'EMail';
        $this->AddField(Input::Text($name, $this->user->GetEMail()));
        $this->SetRequired($name);
        $this->AddValidator($name, PhpFilter::EMail());
    }
626896
private function AddValueField()
    {
        $name = 'Value';
        $field = Fields\Input::Text($name, $this->submit->GetValue());
        $this->AddField($field);
    }
396457
public function addField()
    {
        $oPayment = oxNew(\OxidEsales\Eshop\Application\Model\Payment::class);
        if ($oPayment->loadInLang($this->_iEditLang, $this->getEditObjectId())) {
            $this->_aFieldArray = \OxidEsales\Eshop\Core\Registry::getUtils()->assignValuesFromText($oPayment->oxpayments__oxvaldesc->value);

            $oField = new stdClass();
            $oField->name = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter("sAddField");

            if (!empty($oField->name)) {
                $this->_aFieldArray[] = $oField;
            }
            $this->save();
        }
    }
1282244
function(template, options){
			var payload = { data: {}, template_id: template };

			// Add root attributes to the payload root
			for(var attr in rootAttributes){
				if(!rootAttributes.hasOwnProperty(attr)){
					continue;
				}
				if(typeof options[attr] === 'undefined'){
					continue;
				}
				var key = rootAttributes[attr],
					val = options[attr];
				payload[key] = val;
				delete options[attr];
			}

			// Add any left over attribtues to the data object
			for(attr in options){
				if(!options.hasOwnProperty(attr)){
					continue;
				}
				payload.data[attr] = options[attr]
			}

			// Add to the list of emails
			this.mails.push(payload);
		}
1333124
def add_host(host):
    
    p = new_prefix()
    p.prefix = str(host['ipaddr'])
    p.type = "host"
    p.description = host['description']
    p.node = host['fqdn']
    p.avps = {}

    # Use remaining data from ipplan to populate comment field.
    if 'additional' in host:
        p.comment = host['additional']

    # Use specific info to create extra attributes.
    if len(host['location']) > 0:
        p.avps['location'] = host['location']

    if len(host['mac']) > 0:
        p.avps['mac'] = host['mac']

    if len(host['phone']) > 0:
        p.avps['phone'] = host['phone']

    if len(host['user']) > 0:
        p.avps['user'] = host['user']

    return p
852528
public function emvc_config(): void
    {
        $this->use_smtp = USE_SMTP;
        $this->email_host = EMAIL_HOST;
        $this->email_username = EMAIL_USERNAME;
        $this->email_password = EMAIL_PASSWORD;
        $this->email_security = EMAIL_SECURITY;
    }
665951
public function setup(string $host, string $username, string $password, string $security, bool $use_smtp = true): void
    {
        $this->use_smtp = $use_smtp;
        $this->email_host = $host;
        $this->email_username = $username;
        $this->email_password = $password;
        $this->email_security = $security;
    }
5628
public function add() {
		$this->err('Queue Email Task cannot be added via Console.');
		$this->out('Please use createJob() on the QueuedTask Model to create a Proper Email Task.');
		$this->out('The Data Array should look something like this:');
		$this->out(var_export([
			'settings' => [
				'to' => 'email@example.com',
				'subject' => 'Email Subject',
				'from' => 'system@example.com',
				'template' => 'sometemplate',
			],
			'content' => 'hello world',
		], true));
		$this->out('Alternativly, you can pass the whole EmailLib to directly use it.');
	}
1015763
private function phpMailerSettings() {
        $phpMailer = new PHPMailer();
        if (strlen(env('MAIL_HOST')) > 0) {
            $phpMailer->SMTPDebug = 0;
            $phpMailer->isSMTP();
            $phpMailer->Host = env('MAIL_HOST');
            $phpMailer->SMTPAuth = true;
            $phpMailer->SMTPSecure = env('MAIL_SMTP_SECURE');
            $phpMailer->Port = env('MAIL_PORT');
            $phpMailer->Username = env('MAIL_USERNAME');
            $phpMailer->Password = env('MAIL_PASSWORD');
        } else {
            $phpMailer->isMail();
        }

        $phpMailer->isHTML(true);

        $this->mailer = $phpMailer;
    }
488050
public void addMasterListeners()
    {
        super.addMasterListeners();
                
        ((PasswordPropertiesField)this.getField(MessageTransport.PROPERTIES)).addPasswordProperty(org.jbundle.base.message.trx.transport.email.MessageReceivingPopClientProcess.POP3_PASSWORD);
        ((PasswordPropertiesField)this.getField(MessageTransport.PROPERTIES)).addPasswordProperty(org.jbundle.base.message.trx.transport.email.EmailMessageTransport.SMTP_PASSWORD);
    }
1355592
def addfield(self, pkt, s, val):
        """"""
        if self.adjust(pkt, self.length_of) == 2:
            return s + struct.pack(self.fmt[0] + "H", val)
        elif self.adjust(pkt, self.length_of) == 8:
            return s + struct.pack(self.fmt[0] + "Q", val)
        else:
            return s
1320490
protected function _addAddress($email, $name, $type) {

        $type = '_'.$type;

        $allowed = array(
            '_sender',
            '_from',
            '_to',
            '_cc',
            '_bcc',
            '_reply_to'
        );

        if (in_array($type, $allowed)) {
            if ($name != '') {
                $this->{$type}[$email] = $name;
            } else {
                $this->{$type}[] = $email;
            }
        }
    }
741242
def config(name='EMAIL_URL', default='console://'):
    """"""
    conf = {}
    s = env(name, default)
    if s:
        conf = parse_email_url(s)
    return conf
643782
def add_host(self, name: str, **kwargs) -> None:
        
        host = {
            name: deserializer.inventory.InventoryElement.deserialize_host(
                name=name, defaults=self.defaults, **kwargs
            )
        }
        self.hosts.update(host)
618527
protected function addEmail($field, $email, $name = null)
    {
        if (is_array($email)) {
            foreach ($email as $mail => $name) {
                if (is_numeric($mail)) {
                    $mail = $name;
                    $name = null;
                }

                if ($mail === null) {
                    continue;
                }

                $this->$field($mail, $name);
            }

            return;
        }

        $email = Punycode::toAscii($email);

        $this->{$field}[$email] = $name;
    }