[exim] Re: transport name missing

Página Inicial
Delete this message
Reply to this message
Autor: Ltc Hotspot
Data:  
Para: jarland
CC: exim-users
Assunto: [exim] Re: transport name missing
This is real life project that could save millions of people from student
loan debt @ ced.fund
# no fkn joke
# I'm a low IQ individual
# Human sacrifice is good for others

On Fri, Jul 21, 2023 at 11:41 AM Jarland Donnell via Exim-users <
exim-users@???> wrote:

>
>
> Good luck with your assignment. No cheating!
>
> On 2023-07-21 13:04, Ltc Hotspot via Exim-users wrote:
>
> > 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/
>



--
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/