Sets the reply-to address

@param string $emailAddress The email address to use as your reply address

@return $this
198762
public function replyTo($emailAddress, $name = null)
    {
        $this->message->setReplyTo((string)$emailAddress, (string)$name);
        return $this;
    }
916827
public function setEmailAddress($value)
    {
        if (filter_var($value, FILTER_VALIDATE_EMAIL) === false)
        {
            throw new InvalidArgumentException($value . " is not a valid email address.");
        }
        $this->emailAddress = trim($value);
    }
250882
private function setAddress($quoteAddress, $address)
    {
        $address = $this->cartHelper->handleSpecialAddressCases($address);

        $region = $this->regionModel->loadByName(@$address->region, @$address->country_code);

        $addressData = [
            'firstname'    => @$address->first_name,
            'lastname'     => @$address->last_name,
            'street'       => trim(@$address->street_address1 . "\n" . @$address->street_address2),
            'city'         => @$address->locality,
            'country_id'   => @$address->country_code,
            'region'       => @$address->region,
            'postcode'     => @$address->postal_code,
            'telephone'    => @$address->phone_number,
            'region_id'    => $region ? $region->getId() : null,
            'company'      => @$address->company,
        ];

        if ($this->cartHelper->validateEmail(@$address->email_address)) {
            $addressData['email'] = $address->email_address;
        }

        // discard empty address fields
        foreach ($addressData as $key => $value) {
            if (empty($value)) {
                unset($addressData[$key]);
            }
        }

        $quoteAddress->setShouldIgnoreValidation(true);
        $quoteAddress->addData($addressData)->save();
    }
716035
public function setReplyToAddress(string $address, array $variables = []): self
    {
        $this->addRecipient('h:reply-to', $address, $variables);

        return $this;
    }
389743
public static function fromString(string $emailAddress): self
    {
        if (!preg_match('/^([^><]+?)\s*(?:<([^><]+)>)?$/', $emailAddress, $matches)) {
            throw new InvalidArgumentException(sprintf('"%s" is not a valid e-mail address.', $emailAddress));
        }

        return isset($matches[2]) ? new static($matches[2], $matches[1]) : new static($matches[1]);
    }
1302808
func (s *CreateCustomVerificationEmailTemplateInput) SetFromEmailAddress(v string) *CreateCustomVerificationEmailTemplateInput {
	s.FromEmailAddress = &v
	return s
}
838973
protected function setAddress(Address $address, $addressKey)
    {
        if (!$address->id) {
            $addressResource = $this->client
                ->addresses()
                ->create($address->asArray());

            if ($addressResource) {
                $address = $addressResource;
            }
        }

        $this->updateParams["{$addressKey}Id"] = $address->id;
    }
254371
public function setAddressBilling(\Gpupo\CommonSchema\ORM\Entity\Trading\Order\Customer\AddressBilling $addressBilling = null)
    {
        $this->address_billing = $addressBilling;

        return $this;
    }
688770
public static function validate($emailaddress) {
	try {
		$message = new \Swift_Message();
		$message->setTo($emailaddress);
	}
	catch (\Swift_RfcComplianceException $e) {
		return false;
	}
	
	return true;
}
157540
public function sendContactMail($emailAddress = null, $subject = null, $message = null)
    {

        // shop info
        $shop = $this->_getShop();

        //set mail params (from, fromName, smtp)
        $this->_setMailParams($shop);

        $this->setBody($message);
        $this->setSubject($subject);

        $this->setRecipient($shop->oxshops__oxinfoemail->value, "");
        $this->setFrom($shop->oxshops__oxowneremail->value, $shop->oxshops__oxname->getRawValue());
        $this->setReplyTo($emailAddress, "");

        return $this->send();
    }
1023196
protected function setAddressFormCheckout()
    {
        $this->show_payment_address_form = $this->isSubmitted('address.payment');
        $this->show_shipping_address_form = $this->isSubmitted('address.shipping');

        $actions = array(
            'get_states' => true,
            'add_address' => true,
            'cancel_address_form' => false
        );

        foreach ($actions as $field => $action) {
            $value = $this->getPosted($field, '', true, 'string');
            if (isset($value)) {
                $this->{"show_{$value}_address_form"} = $action;
            }
        }
    }
1294260
public function setOrderAddress($orderAddress, $addressData, $contact = null, $account = null)
    {
        // Check if address with id can be found.
        $contactData = $this->getContactData($addressData, $contact);
        // Add contact data.
        if ($contactData) {
            $orderAddress->setFirstName($contactData['firstName']);
            $orderAddress->setLastName($contactData['lastName']);
            if (isset($contactData['title'])) {
                $orderAddress->setTitle($contactData['title']);
            }
            if (isset($contactData['salutation'])) {
                $orderAddress->setSalutation($contactData['salutation']);
            }
            if (isset($contactData['formOfAddress'])) {
                $orderAddress->setFormOfAddress($contactData['formOfAddress']);
            }
        }

        // Add account data.
        $orderAddress->setAccountName(null);
        $orderAddress->setUid(null);

        if ($account) {
            $orderAddress->setAccountName($account->getName());
            $orderAddress->setUid($account->getUid());
        }

        // TODO: add phone

        $this->setAddressDataForOrder($orderAddress, $addressData);
    }
423742
public function setTo(array $addresses): Email
    {
        $addresses = $this->transformAddressesToArray($addresses);
        $this->message->setTo($addresses);

        return $this;
    }
549987
private function setAddress($address) {

        if(!$this->formatter) {
            $this->formatter = new StringFormatter();
        }

        $this->address = trim($this->formatter->format($address, '%S %n %z %L %C'));

        return $this;
    }
16229
public function setSender(Address $address): Email
    {
        $this->message->setSender($address->getEmail(), $address->getName());

        return $this;
    }
895291
public function setAddressAddOn($addressAddOn): Hybrid
    {
        self::validateSetLength('addressAddOn', $addressAddOn);
        $this->data['addressAddOn'] = $addressAddOn;

        return $this;
    }
134408
public function setServerAddress($serverAddress)
    {
        $serverAddress = (string) $serverAddress;
        if ($serverAddress === '') {
            throw new \InvalidArgumentException('$serverAddress cannot be empty');
        }

        $this->serverAddress = $serverAddress;
    }