E-Mail Versand mit office365

Deutschsprachiges Forum für Diskussionen und Fragen zu MantisBT

Moderators: Developer, Contributor

Post Reply
ChrisO
Posts: 2
Joined: 22 Jun 2015, 10:05

E-Mail Versand mit office365

Post by ChrisO »

Hallo,

ich habe Probleme mit dem Versand von E-Mails über office365

Meine Settings in config_ing.php

Code: Select all

<?php
        $g_hostname = 'localhost';
        $g_db_type = 'mysql';
        $g_database_name = 'bugtracker';
        $g_db_username = 'root';
        $g_db_password = '********';
        $g_show_version         = ON;


$g_allow_signup = ON; //allows the users to sign up for a new account
$g_enable_email_notification = ON; //enables the email messages
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'smtp.office365.com';
$g_smtp_connection_mode = 'tls';
$g_smtp_port = '587';
$g_smtp_username = 'user@domain.com'; 
$g_smtp_password = '********'; 
$g_administrator_email = 'administrator@domain.com'; //this is my administrator email address
$g_log_level =LOG_EMAIL;
$g_log_destination='file:/var/log/mantis.log';
?
Im Logfile erhalte ich folgende Meldungen:

Code: Select all

2015-06-22 11:59 CEST mail ERROR: Message could not be sent - SMTP Error: Data not accepted.<p>SMTP server error: 5.7.60 SMTP; Client does not have permissions to send as this sender
</p>
Der Versand über Outlook, Webclient usw. funktioniert.

Was muss noch eingestellt werden?

Vielen Dank!

Gruß

ChrisO
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: E-Mail Versand mit office365

Post by atrol »

Ich kann es nicht selbst ausprobieren, möglicherweise hilft folgender Hinweis, auch wenn die Fehlermeldung erst mal nach etwas anderem klingt.
Einige Mailversender mögen es nicht wenn $g_from_email und/oder $g_return_path_email nicht auf eine echte Adresse, sondern auf "noreply@example.com" oder "admin@example.com" (die Mantis Standardwerte) gesetzt sind.
Please use Search before posting and read the Manual
ChrisO
Posts: 2
Joined: 22 Jun 2015, 10:05

Re: E-Mail Versand mit office365

Post by ChrisO »

Hallo,

ich habe die Versandadresse bei $g_from_email und $g_return_path_email eingetragen.
Resultat: Your PHP mail settings appear to be correctly set.

Problem gelöst.

Vielen Dank!!

Gruß

ChrisO
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: E-Mail Versand mit office365

Post by atrol »

Danke für die Rückmeldung.
Please use Search before posting and read the Manual
Post Reply