Page 1 of 1

E-Mail Versand mit office365

Posted: 22 Jun 2015, 11:06
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

Re: E-Mail Versand mit office365

Posted: 22 Jun 2015, 16:34
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.

Re: E-Mail Versand mit office365

Posted: 22 Jun 2015, 16:51
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

Re: E-Mail Versand mit office365

Posted: 23 Jun 2015, 06:51
by atrol
Danke für die Rückmeldung.