Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overdue notification: Sender Email library <[email protected]> to <[email protected]> #201

Closed
lau01402 opened this issue Jul 26, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@lau01402
Copy link

lau01402 commented Jul 26, 2023

config\mail.php
<?php
return [
    'debug' => '2',
    'SMTPSecure' => 'ssl',
    'enable' => true,
    'server' => 'imap.gmail.com',
    'server_port' => '465',
    'auth_enable' => true,
    'auth_username' => '[email protected]', // example : [email protected]
    'auth_password' => 'auth_password',
    /**
     * E-Mail information
     */
    'from' => '[email protected]', // example [email protected]
    'from_name' => 'library', // put a nice name here
    'reply_to' => '[email protected]', // similar with 'from' option
    'reply_to_name' => 'library', // similar with 'from' option
];

2023-07-26 02:28:58 CLIENT -> SERVER: AUTH LOGIN
2023-07-26 02:28:59 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2023-07-26 02:28:59 CLIENT -> SERVER: [credentials hidden]
2023-07-26 02:28:59 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2023-07-26 02:28:59 CLIENT -> SERVER: [credentials hidden]
2023-07-26 02:28:59 SERVER -> CLIENT: 235 2.7.0 Accepted
2023-07-26 02:28:59 CLIENT -> SERVER: MAIL FROM:<[email protected]>
2023-07-26 02:28:59 SERVER -> CLIENT: 250 2.1.0 OK y17-20020a17090322d100b001ae0152d280sm11759378plg.193 - gsmtp
2023-07-26 02:28:59 CLIENT -> SERVER: RCPT TO:<[email protected]>
2023-07-26 02:28:59 SERVER -> CLIENT: 250 2.1.5 OK y17-20020a17090322d100b001ae0152d280sm11759378plg.193 - gsmtp
2023-07-26 02:28:59 CLIENT -> SERVER: DATA
2023-07-26 02:29:00 SERVER -> CLIENT: 354 Go ahead y17-20020a17090322d100b001ae0152d280sm11759378plg.193 - gsmtp
2023-07-26 02:29:00 CLIENT -> SERVER: Date: Wed, 26 Jul 2023 10:28:58 +0800
2023-07-26 02:29:00 CLIENT -> SERVER: To: =?iso-8859-1?B?6I2J6bih54KW6bG8?= <[email protected]>
2023-07-26 02:29:00 CLIENT -> SERVER: From: library <[email protected]>
2023-07-26 02:29:00 CLIENT -> SERVER: Reply-To: library <[email protected]>
2023-07-26 02:29:00 CLIENT -> SERVER: Subject: Overdue Notice for Member ([email protected])
2023-07-26 02:29:00 CLIENT -> SERVER: Message-ID: <hD4ClaJjuQLAuz4Dtfhsd4VaT3hklAq86cLXBTjUH6E@localhost>
2023-07-26 02:29:00 CLIENT -> SERVER: X-Mailer: PHPMailer 6.1.8 (https://github.com/PHPMailer/PHPMailer)
2023-07-26 02:29:00 CLIENT -> SERVER: MIME-Version: 1.0
2023-07-26 02:29:00 CLIENT -> SERVER: Content-Type: multipart/alternative;
2023-07-26 02:29:00 CLIENT -> SERVER: boundary="b1_hD4ClaJjuQLAuz4Dtfhsd4VaT3hklAq86cLXBTjUH6E"
2023-07-26 02:29:00 CLIENT -> SERVER: Content-Transfer-Encoding: 8bit
2023-07-26 02:29:00 CLIENT -> SERVER:
2023-07-26 02:29:00 CLIENT -> SERVER: This is a multi-part message in MIME format.
2023-07-26 02:29:00 CLIENT -> SERVER:
2023-07-26 02:29:00 CLIENT -> SERVER: --b1_hD4ClaJjuQLAuz4Dtfhsd4VaT3hklAq86cLXBTjUH6E
2023-07-26 02:29:00 CLIENT -> SERVER: Content-Type: text/plain; charset=iso-8859-1
2023-07-26 02:29:00 CLIENT -> SERVER: Content-Transfer-Encoding: 8bit
2023-07-26 02:29:00 CLIENT -> SERVER: 

////////////////////////////////////////////

****

Question:
Which part can i change the --  library <[email protected]> to <[email protected]>

I have searched around a few files, hoping to find some clues for it in the following locations:

1. admin\modules\reporting\customs\overdued_list.php
2. admin\modules\membership\member_base_lib.inc.php
3. admin\admin_template\overdueMail.php

Some words cannot display correctly, which is another issue similar to #96. My font is for "Chinese characters" in the email. This part will be fixed if I do not call out the {$loadData} in 

admin\admin_template\overdueMail.php


line:119     <table style="display: block">
line:120         {$loanData}     //Remove this one, temperary use another way to remind the overdue member,
line:121         </table>

This should resolve the font error.

@lau01402 lau01402 added the bug Something isn't working label Jul 26, 2023
@drajathasan drajathasan added enhancement New feature or request and removed bug Something isn't working labels Aug 19, 2023
@drajathasan
Copy link
Collaborator

Why you not read config/mail.php first?

'from' => '_from_', // example [email protected]
'from_name' => '_fromname_', // put a nice name here
'reply_to' => '_from_', // similar with 'from' option
'reply_to_name' => '_fromname_', // similar with 'from' option

change "reply_to" and "reply_to_name" option value with yours and you can solved your problem.

@lau01402
Copy link
Author

lau01402 commented Aug 19, 2023

I go through again what you said. Read & Check again the "config/mail.php
Still not understand. where can I do the change to make the email receiver

see the email send from "[email protected]" ,,, instate of it show out send from '[email protected]

 

Below is my, configure setting. config\mail.php
& is same as the post request i put on top. Debug log are showing, it capture use the "reply_to" and "reply_to_name" option value.

<?php
return [
'debug' => '2',
'SMTPSecure' => 'ssl',
'enable' => true,
'server' => 'imap.gmail.com',
'server_port' => '465',
'auth_enable' => true,
'auth_username' => '[email protected]',
'auth_password' => 'auth_password',

/**
* E-Mail information
*/
'from' => '[email protected]',
'from_name' => 'library', // put a nice name here
'reply_to' => '[email protected]',
'reply_to_name' => 'library',
];

/////////////////////////////////////////////////////////////////////
Output Result. *** email output result : on top the printscreen image

in the email. Receiver get see the mail send by == library <[email protected]>

i want the email Receiver see the email , send by == [email protected]

Is there any other place, I miss out to change ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants