Page 1 of 1

Email Sender name

Posted: Mon Sep 25, 2017 10:00 pm
by krang
Hi,

Default sender name for email is [email protected].
How and where can I change this value for my address.
Now I have something like [email protected] and my email provider sometimes block this to get outside my server. I had same situation with my Wordpress blog. When I changed default email from [email protected] to my address using some plugin it works now perfect and emails are not rejected. I would like to do the same thing in BitShop. Could you pleas help me and let me know where in config I can change this. Would be perfect if this could be changed from admin panel but for now I will be happy for any solution.

Regards,
Krang

Re: Email Sender name

Posted: Thu Sep 28, 2017 6:27 am
by bitfreak
Open the /lib/special.lib.php file and edit lines 197 (replace 'noreply@'.$_SERVER['SERVER_NAME'] with your email string). Or if you have SMTP enabled look at lines 205. You should only need to change the reply email but I'm not entirely sure, I believe services like Gmail may flag an email as spam if the "from email" isn't the same as the server it was sent from.

Re: Email Sender name

Posted: Thu Sep 28, 2017 8:52 am
by krang
hmm doesn't work for me :(
I am not sure what is the issue, maybe you could figure it out.
Everything works fine till last week. My shop stop to send any system email. Not sure why.

SMTP enabled:

Code: Select all

2017-09-28 08:46:39 Connection: opening to mail.riseup.net:587, timeout=300, options=array ( ) 2017-09-28 08:46:39 Connection: opened 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "" 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "220 piha.riseup.net ESMTP (spam is not appreciated) " 2017-09-28 08:46:40 SERVER -> CLIENT: 220 piha.riseup.net ESMTP (spam is not appreciated) 2017-09-28 08:46:40 CLIENT -> SERVER: EHLO kzspryu63qbjfncp.onion 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "" 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250-piha.riseup.net " 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "250-piha.riseup.net " 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250-PIPELINING " 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "250-piha.riseup.net 250-PIPELINING " 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250-SIZE 25600000 " 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "250-piha.riseup.net 250-PIPELINING 250-SIZE 25600000 " 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250-ETRN " 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "250-piha.riseup.net 250-PIPELINING 250-SIZE 25600000 250-ETRN " 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250-STARTTLS " 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "250-piha.riseup.net 250-PIPELINING 250-SIZE 25600000 250-ETRN 250-STARTTLS " 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES " 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "250-piha.riseup.net 250-PIPELINING 250-SIZE 25600000 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES " 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250-8BITMIME " 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "250-piha.riseup.net 250-PIPELINING 250-SIZE 25600000 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-8BITMIME " 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250 DSN " 2017-09-28 08:46:40 SERVER -> CLIENT: 250-piha.riseup.net 250-PIPELINING 250-SIZE 25600000 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN 2017-09-28 08:46:40 CLIENT -> SERVER: STARTTLS 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "" 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "220 2.0.0 Ready to start TLS " 2017-09-28 08:46:40 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS 2017-09-28 08:46:40 CLIENT -> SERVER: EHLO kzspryu63qbjfncp.onion 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "" 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250-piha.riseup.net " 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "250-piha.riseup.net " 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250-PIPELINING " 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "250-piha.riseup.net 250-PIPELINING " 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250-SIZE 25600000 " 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "250-piha.riseup.net 250-PIPELINING 250-SIZE 25600000 " 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250-ETRN " 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "250-piha.riseup.net 250-PIPELINING 250-SIZE 25600000 250-ETRN " 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN " 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "250-piha.riseup.net 250-PIPELINING 250-SIZE 25600000 250-ETRN 250-AUTH PLAIN LOGIN " 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250-AUTH=PLAIN LOGIN " 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "250-piha.riseup.net 250-PIPELINING 250-SIZE 25600000 250-ETRN 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN " 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES " 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "250-piha.riseup.net 250-PIPELINING 250-SIZE 25600000 250-ETRN 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN 250-ENHANCEDSTATUSCODES " 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250-8BITMIME " 2017-09-28 08:46:40 SMTP -> get_lines(): $data is "250-piha.riseup.net 250-PIPELINING 250-SIZE 25600000 250-ETRN 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN 250-ENHANCEDSTATUSCODES 250-8BITMIME " 2017-09-28 08:46:40 SMTP -> get_lines(): $str is "250 DSN " 2017-09-28 08:46:40 SERVER -> CLIENT: 250-piha.riseup.net 250-PIPELINING 250-SIZE 25600000 250-ETRN 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN 2017-09-28 08:46:40 Auth method requested: UNKNOWN 2017-09-28 08:46:40 Auth methods available on the server: PLAIN,LOGIN 2017-09-28 08:46:40 Auth method selected: LOGIN 2017-09-28 08:46:40 CLIENT -> SERVER: AUTH LOGIN 2017-09-28 08:46:41 SMTP -> get_lines(): $data is "" 2017-09-28 08:46:41 SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6 " 2017-09-28 08:46:41 SERVER -> CLIENT: 334 VXNlcm5hbWU6 2017-09-28 08:46:41 CLIENT -> SERVER: cm9ja3N0ZWFkeQ== 2017-09-28 08:46:41 SMTP -> get_lines(): $data is "" 2017-09-28 08:46:41 SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6 " 2017-09-28 08:46:41 SERVER -> CLIENT: 334 UGFzc3dvcmQ6 2017-09-28 08:46:41 CLIENT -> SERVER: aGFoYWhhVEFKTkVuYXNlcndlcjQh 2017-09-28 08:46:41 SMTP -> get_lines(): $data is "" 2017-09-28 08:46:41 SMTP -> get_lines(): $str is "235 2.7.0 Authentication successful " 2017-09-28 08:46:41 SERVER -> CLIENT: 235 2.7.0 Authentication successful 2017-09-28 08:46:41 CLIENT -> SERVER: MAIL FROM: 2017-09-28 08:46:41 SMTP -> get_lines(): $data is "" 2017-09-28 08:46:41 SMTP -> get_lines(): $str is "250 2.1.0 Ok " 2017-09-28 08:46:41 SERVER -> CLIENT: 250 2.1.0 Ok 2017-09-28 08:46:41 CLIENT -> SERVER: RCPT TO: 2017-09-28 08:46:41 SMTP -> get_lines(): $data is "" 2017-09-28 08:46:41 SMTP -> get_lines(): $str is "450 4.1.8 : Sender address rejected: Domain not found " 2017-09-28 08:46:41 SERVER -> CLIENT: 450 4.1.8 : Sender address rejected: Domain not found 2017-09-28 08:46:41 SMTP ERROR: RCPT TO command failed: 450 4.1.8 : Sender address rejected: Domain not found 2017-09-28 08:46:41 CLIENT -> SERVER: QUIT 2017-09-28 08:46:41 SMTP -> get_lines(): $data is "" 2017-09-28 08:46:41 SMTP -> get_lines(): $str is "221 2.0.0 Bye " 2017-09-28 08:46:41 SERVER -> CLIENT: 221 2.0.0 Bye 2017-09-28 08:46:41 Connection: closed 2017-09-28 08:46:41 SMTP Error: The following recipients failed: [email protected]: : Sender address rejected: Domain not found

ERROR: SMTP Error: The following recipients failed: [email protected]: : Sender address rejected: Domain not found

Error sending email.
Same error for php mail function.

Looks like there is problem with connection to riseup.net server. But why it always works fine and I can access to this account. For other sites on same server it works too :(

Re: Email Sender name

Posted: Thu Sep 28, 2017 9:03 am
by krang
I changed email for gmail account and error is:

Code: Select all

2017-09-28 09:01:25 Connection: opening to smtp.gmail.com:587, timeout=300, options=array ( ) 2017-09-28 09:01:25 Connection: opened 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "" 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "220 smtp.gmail.com ESMTP f21sm1158724edd.16 - gsmtp " 2017-09-28 09:01:25 SERVER -> CLIENT: 220 smtp.gmail.com ESMTP f21sm1158724edd.16 - gsmtp 2017-09-28 09:01:25 CLIENT -> SERVER: EHLO kzspryu63qbjfncp.onion 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "" 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] " 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] " 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "250-SIZE 35882577 " 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] 250-SIZE 35882577 " 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "250-8BITMIME " 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] 250-SIZE 35882577 250-8BITMIME " 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "250-STARTTLS " 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS " 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES " 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250-ENHANCEDSTATUSCODES " 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "250-PIPELINING " 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-PIPELINING " 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "250-CHUNKING " 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING " 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "250 SMTPUTF8 " 2017-09-28 09:01:25 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] 250-SIZE 35882577 250-8BITMIME 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 2017-09-28 09:01:25 CLIENT -> SERVER: STARTTLS 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "" 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "220 2.0.0 Ready to start TLS " 2017-09-28 09:01:25 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS 2017-09-28 09:01:25 CLIENT -> SERVER: EHLO kzspryu63qbjfncp.onion 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "" 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] " 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] " 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "250-SIZE 35882577 " 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] 250-SIZE 35882577 " 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "250-8BITMIME " 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] 250-SIZE 35882577 250-8BITMIME " 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH " 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH " 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES " 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES " 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "250-PIPELINING " 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING " 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "250-CHUNKING " 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING " 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "250 SMTPUTF8 " 2017-09-28 09:01:25 SERVER -> CLIENT: 250-smtp.gmail.com at your service, [2602:ffda:aaa::b1b:fa2c] 250-SIZE 35882577 250-8BITMIME 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-CHUNKING 250 SMTPUTF8 2017-09-28 09:01:25 Auth method requested: UNKNOWN 2017-09-28 09:01:25 Auth methods available on the server: LOGIN,PLAIN,XOAUTH2,PLAIN-CLIENTTOKEN,OAUTHBEARER,XOAUTH 2017-09-28 09:01:25 Auth method selected: LOGIN 2017-09-28 09:01:25 CLIENT -> SERVER: AUTH LOGIN 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "" 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "334 VXNlcm5hbWU6 " 2017-09-28 09:01:25 SERVER -> CLIENT: 334 VXNlcm5hbWU6 2017-09-28 09:01:25 CLIENT -> SERVER: am9obmtyYW5nYmVsbEBnbWFpbC5jb20= 2017-09-28 09:01:25 SMTP -> get_lines(): $data is "" 2017-09-28 09:01:25 SMTP -> get_lines(): $str is "334 UGFzc3dvcmQ6 " 2017-09-28 09:01:25 SERVER -> CLIENT: 334 UGFzc3dvcmQ6 2017-09-28 09:01:25 CLIENT -> SERVER: YjBzc3Qwcm5ldHcwcmtnbWFpbEA= 2017-09-28 09:01:26 SMTP -> get_lines(): $data is "" 2017-09-28 09:01:26 SMTP -> get_lines(): $str is "534-5.7.14 get_lines(): $data is "534-5.7.14 get_lines(): $str is "534-5.7.14 zcCB_V3DE4dLP9w_Ao8CChuqRI-s1nd7XhvJElxxtnxRTSZ4Tldt9KEeRVTsKKFhYvO782 " 2017-09-28 09:01:26 SMTP -> get_lines(): $data is "534-5.7.14 get_lines(): $str is "534-5.7.14 CatDZ4DGIvBLL2-0DFH3KUD79ZVviu1PDf4tu12fs9PKV09sQ0fqEyWqxBljH3F5zP2WuO " 2017-09-28 09:01:26 SMTP -> get_lines(): $data is "534-5.7.14 get_lines(): $str is "534-5.7.14 vh3lNWG67WC92batcmU_w7t-XrO5MR3X_wsYmt_KTaUGdQ-cFbCPITqRq0vipMJKYJsbSt " 2017-09-28 09:01:26 SMTP -> get_lines(): $data is "534-5.7.14 get_lines(): $str is "534-5.7.14 mLs78LUc3tPRJPvCwtDtXPY7GV0t4> Please log in via your web browser and " 2017-09-28 09:01:26 SMTP -> get_lines(): $data is "534-5.7.14 Please log in via your web browser and " 2017-09-28 09:01:26 SMTP -> get_lines(): $str is "534-5.7.14 then try again. " 2017-09-28 09:01:26 SMTP -> get_lines(): $data is "534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. " 2017-09-28 09:01:26 SMTP -> get_lines(): $str is "534-5.7.14 Learn more at " 2017-09-28 09:01:26 SMTP -> get_lines(): $data is "534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at " 2017-09-28 09:01:26 SMTP -> get_lines(): $str is "534 5.7.14 https://support.google.com/mail/answer/78754 f21sm1158724edd.16 - gsmtp " 2017-09-28 09:01:26 SERVER -> CLIENT: 534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 f21sm1158724edd.16 - gsmtp 2017-09-28 09:01:26 SMTP ERROR: Password command failed: 534-5.7.14 Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 f21sm1158724edd.16 - gsmtp 2017-09-28 09:01:26 SMTP Error: Could not authenticate. 2017-09-28 09:01:26 CLIENT -> SERVER: QUIT 2017-09-28 09:01:26 SMTP -> get_lines(): $data is "" 2017-09-28 09:01:26 SMTP -> get_lines(): $str is "221 2.0.0 closing connection f21sm1158724edd.16 - gsmtp " 2017-09-28 09:01:26 SERVER -> CLIENT: 221 2.0.0 closing connection f21sm1158724edd.16 - gsmtp 2017-09-28 09:01:26 Connection: closed 2017-09-28 09:01:26 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

ERROR: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Error sending email.

Re: Email Sender name

Posted: Thu Sep 28, 2017 9:15 am
by krang
Does Bitshop using latest version of php mailer?
https://github.com/PHPMailer/PHPMailer/ ... leshooting

I am working on php7 so maybe outdated phpmailer is the reason?

Re: Email Sender name

Posted: Fri Sep 29, 2017 1:39 am
by bitfreak
Sent you a PM with files to test the latest version of PHPMailer, let me know if it solves your problem.