0

Quick Question!

I need to change the SMTP details in a Typo3 site. Normally, you can do this by going to the install tool > all configuration. That however is password protested and I don't know it! (The guy who does know it is not available)

Can I change these details directly from a file in the FTP server? If so, which file? I can't find it, and any documentation I've checked out doesn't help!

Ty!

4

3 に答える 3

0

IN あなたの localconf.php に追加

$TYPO3_CONF_VARS['MAIL']['transport'] = 'smtp';
$TYPO3_CONF_VARS['MAIL']['transport_smtp_server'] = 'smtp.gmail.com:465';
$TYPO3_CONF_VARS['MAIL']['transport_smtp_port'] = '465';
$TYPO3_CONF_VARS['MAIL']['transport_smtp_encrypt'] ='ssl'; # requires openssl in PHP
$TYPO3_CONF_VARS['MAIL']['transport_smtp_username'] = '*****@gmail.com';
$TYPO3_CONF_VARS['MAIL']['transport_smtp_password'] = '*****';

次に、phpファイルで使用します

$mailContent = $mailcontent;
$mailContent = ($mailContent);
// Create the Mailer using your created Transport
$mail = t3lib_div::makeInstance('t3lib_mail_Message');

 $mail->setFrom(array('sender email' => 'sender name'));

//$mail->setBcc(array($this->bcc => $this->bcc));
$mail->setSubject($subject);
$mail->setBody($mailContent,'text/html');
$mail->setTo(array('reciever email' => 'name'));    
$mail->send();
于 2014-01-24T13:14:10.603 に答える