Laravel 5.2多个电子邮件发送。获取电子邮件地址

时间:2016-09-24 13:48:48

标签: php laravel email swiftmailer

如何在'电子邮件订阅'中获取实际/当前的电子邮件地址视图? 这是我的代码:

Mail::send('emails.subscribed', $data, function($message) use ($subject,$recievers,$meta) {
    foreach ($recievers as $email) {
        $message->bcc($email,$email);
        $message->email = $email;
    }
});

我需要获取当前电子邮件地址的视图(不是整个电子邮件数据只是当前的): {{$somehow->email}}

1 个答案:

答案 0 :(得分:0)

逐个发送电子邮件,而不是全部发送电子邮件,然后您可以轻松更改电子邮件视图:

Email: {{ $recipient['email'] }}
Name: {{ $recipient['name'] }}

查看emails.subscribed.blade.php:

    lineaGuida_Img = [SKTexture textureWithImageNamed:@"LineaGuida copia.jpeg"];  
_Linea = [SKNode node];
_Linea.position = CGPointMake((self.frame.size.width / 7 ) * 2, self.frame.size.height / 2 );
_Linea.zPosition = -10;

SKSpriteNode * linea = [SKSpriteNode spriteNodeWithTexture:lineaGuida_Img];
linea.position = CGPointMake(0,0);
linea.physicsBody = [SKPhysicsBody bodyWithRectangleOfSize:linea.size];
linea.physicsBody.dynamic = FALSE;
linea.physicsBody.collisionBitMask = 0;
linea.physicsBody.categoryBitMask = CollisionEnemy;
[_Linea addChild:linea];

[self addChild:_Linea];