[exim] transport name missing

Top Page
Delete this message
Reply to this message
Author: Ltc Hotspot
Date:  
To: exim-users
Subject: [exim] transport name missing
Hi,
What is the "transport name missing."?


Your second assignment is to rewrite the SMTP transport script without the
"transport name missing."

Here is the gist link,
https://gist.github.com/DevCEDTeam/8b56174970ede2385f93305305e5fd2e



What is the "transport name missing"

// Define transport names
$spamgatewayTransportName = 'spamgateway_smtp';
$firebaseTransportName = 'firebase_smtp';

// Create the spamgateway SMTP transport
$spamgatewayTransport = (new Swift_SmtpTransport('34.145.37.45', 587,
'tls'))
    ->setUsername('team@???')
    ->setPassword('Rw4?!3Yz8K');


// Create the firebase SMTP transport
$firebaseTransport = (new Swift_SmtpTransport('smtp.gmail.com', 587, 'tls'))
    ->setAuthMode('login')
    ->setUsername('
firebase-adminsdk-bpwq7@???')


->setPassword('/ssl/json/gmail-bulk-sending-389112-firebase-adminsdk-bpwq7-1c8285bad0.json');

// Set up the different transports as per the Exim script configuration
Swift_Preferences::getInstance()->setTransport($spamgatewayTransportName,
$spamgatewayTransport);
Swift_Preferences::getInstance()->setTransport($firebaseTransportName,
$firebaseTransport);

// Create the Swift_Mailer object and set the default transport
$mailer = new Swift_Mailer($spamgatewayTransport);



What is the transport names ($spamgatewayTransportName and
$firebaseTransportName) before using them in the setTransport method.
Passes these transport names to the setTransport method to set up the
different transports. Passes the $spamgatewayTransport transport to the
constructor of the Swift_Mailer object and use it as the default transport.

--
Regards,
Hal

--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/