Mailer Issue on SMTP

Hi,

What could be wrong? i got error on sending mail using one.com with SMTP configuration in Send Mailer in wappler.

the error is:

{“code”:2,“file”:"/customers/e/1/a/tamilfilm.se/httpd.www/dmxConnectLib/PHPMailer/PHPMailer/PHPMailer.php",“line”:1977,“message”:“SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting",“trace”:"#0 /customers/e/1/a/tamilfilm.se/httpd.www/dmxConnectLib/PHPMailer/PHPMailer/PHPMailer.php(1648): PHPMailer\PHPMailer\PHPMailer->smtpSend(‘Date: Sat, 26 N…’, ‘First Name: Thi…’)\n#1 /customers/e/1/a/tamilfilm.se/httpd.www/dmxConnectLib/PHPMailer/PHPMailer/PHPMailer.php(1486): PHPMailer\PHPMailer\PHPMailer->postSend()\n#2 /customers/e/1/a/tamilfilm.se/httpd.www/dmxConnectLib/modules/mail.php(133): PHPMailer\PHPMailer\PHPMailer->send()\n#3 /customers/e/1/a/tamilfilm.se/httpd.www/dmxConnectLib/lib/App.php(197): modules\mail->send(Object(stdClass), ‘’, NULL)\n#4 /customers/e/1/a/tamilfilm.se/httpd.www/dmxConnectLib/lib/App.php(137): lib\App->execSteps(Object(stdClass))\n#5 /customers/e/1/a/tamilfilm.se/httpd.www/dmxConnectLib/lib/App.php(126): lib\App->exec(Object(stdClass), false)\n#6 /customers/e/1/a/tamilfilm.se/httpd.www/dmxConnectLib/lib/App.php(104): lib\App->exec(Object(stdClass))\n#7 /customers/e/1/a/tamilfilm.se/httpd.www/dmxConnect/api/mail/mailBooking.php(8): lib\App->define(Object(stdClass))\n#8 {main}”}

Please help

Please check:

1 Like

Sure do that soon… thanks

i got this on browser network preview. not in console

2022-11-26 20:49:28 Connection: opening to mailout.one.com:465, timeout=300, options=array ( ‘ssl’ => array ( ‘verify_peer’ => false, ‘verify_peer_name’ => false, ‘allow_self_signed’ => true, ),)
2022-11-26 20:49:28 Connection: opened
2022-11-26 20:54:28 SERVER -> CLIENT:
2022-11-26 20:54:28 Connection: closing due to error
2022-11-26 20:54:28 Connection: closed
SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

I had configuration error on send mail. misconfigured. now i have corrected the error. Its working cool…

Thank Teodor :slight_smile:

@Teodor

Please help, why i get this error when i configured the Send Mail config as this:

got the error:

2022-11-30 04:43:22 Connection: opening to mailout.one.com:25, timeout=300, options=array ( 'ssl' => array ( 'verify_peer' => false, 'verify_peer_name' => false, 'allow_self_signed' => true, ),)
2022-11-30 04:43:22 Connection: opened
2022-11-30 04:43:22 SERVER -> CLIENT: 220 mailout1.pub.mailoutpod1-cph3.one.com ESMTP
2022-11-30 04:43:22 CLIENT -> SERVER: EHLO tamilfilm.se
2022-11-30 04:43:22 SERVER -> CLIENT: 250-mailout1.pub.mailoutpod1-cph3.one.com250-PIPELINING250-SIZE 104857600250-STARTTLS250-AUTH LOGIN PLAIN250-ENHANCEDSTATUSCODES250 8BITMIME
2022-11-30 04:43:22 CLIENT -> SERVER: STARTTLS
2022-11-30 04:43:22 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2022-11-30 04:43:22 CLIENT -> SERVER: EHLO tamilfilm.se
2022-11-30 04:43:22 SERVER -> CLIENT: 250-mailout1.pub.mailoutpod1-cph3.one.com250-PIPELINING250-SIZE 104857600250-AUTH LOGIN PLAIN250-ENHANCEDSTATUSCODES250 8BITMIME
2022-11-30 04:43:22 CLIENT -> SERVER: AUTH LOGIN
2022-11-30 04:43:22 SERVER -> CLIENT: 334 VXNlcm5hbWU6
2022-11-30 04:43:22 CLIENT -> SERVER: [credentials hidden]
2022-11-30 04:43:22 SERVER -> CLIENT: 334 UGFzc3dvcmQ6
2022-11-30 04:43:22 CLIENT -> SERVER: [credentials hidden]
2022-11-30 04:43:22 SERVER -> CLIENT: 235 2.7.0 Ok
2022-11-30 04:43:22 CLIENT -> SERVER: MAIL FROM:<thineskumar_81@hotmail.com>
2022-11-30 04:43:22 SERVER -> CLIENT: 554 5.7.8 User [info@tamilfilm.se] not authorized to send as on behalf of <thineskumar_81@hotmail.com>
2022-11-30 04:43:22 SMTP ERROR: MAIL FROM command failed: 554 5.7.8 User [info@tamilfilm.se] not authorized to send as on behalf of <thineskumar_81@hotmail.com>
The following From address failed: thineskumar_81@hotmail.com : MAIL FROM command failed,User [info@tamilfilm.se] not authorized to send as on behalf of <thineskumar_81@hotmail.com>,554,5.7.8SMTP server error: MAIL FROM command failed Detail: User [info@tamilfilm.se] not authorized to send as on behalf of <thineskumar_81@hotmail.com> SMTP code: 554 Additional SMTP info: 5.7.8
2022-11-30 04:43:22 CLIENT -> SERVER: QUIT
2022-11-30 04:43:22 SERVER -> CLIENT:
2022-11-30 04:43:22 SMTP ERROR: QUIT command failed:
2022-11-30 04:43:22 Connection: closed

Well the error message pretty much says everything. It is your SMTP server which returns this error, not a problem with the mail component:

SMTP ERROR: MAIL FROM command failed: 554 5.7.8 User [info@tamilfilm.se] not authorized to send as on behalf of thineskumar_81@hotmail.com
The following From address failed: thineskumar_81@hotmail.com : MAIL FROM command failed,User [info@tamilfilm.se] not authorized to send as on behalf of thineskumar_81@hotmail.com

@Teodor

I have question Sender in Send Mail is to use my server email? where i suppose to get the email or Recipient is my server email? Im confused

The ‘Sender’ fields are what the email has as ‘From:’ etc. You have them set to the values submitted by the form. This is most likely the problem. The SMTP server is probably rejecting the email as it’s not coming from a known and allowed email address. If this is a notification email for staff then I would set the Sender details as the email address you are allowed to send as (info@tamilfilm.se?) but leave the Reply To as the submitted address. I would also set the Sender Name as something static like ‘Website Submission’. Give that a go and see if it fixes it.

in that case: email is sending other way around like when a user submitting the form the form data suppose to go to info@tamilfim.se email inbox instead it goes to the email that used in the form.

So im confused who is sender and receiver in Send Mail component.

This is the receiver (the person who receives the email), as it is explained in the UI:

so the way i have put the value is correct?

Yes.

Is there any possibility using different SMTP than hosted server, like google smtp ?

can anyone test the Send Mailer and Send Mail with SMTP setup with simple form? because i spoke to one.com support they saying that their server has configured to work with SMTP. nothing wrong.

Also they mentioned that sender suppose to me their email address(info@tamilfilm.se) but As @Teodor said what i have configured in send mail is correct. But still i got that above error.

Now i have doubt that Send Mail setup is revoking and the end or not, even though i placed receiver and sender correctly, when submitting the form the script might taking sender as receiver? in that case SMTP will not authorise as @sitestreet mentioned above.

please help some one who has used one.com or any other server SMTP configured send mail function in php.

That can’t happen.
How exactly have you configured the global mailer?

here you can see Send Mailer setup in global:

Then that’s the problem. You are sending the emails through the following account:

And it errors because you are trying to use the email from the form as a sender. So you need to check your SMTP configuration and enable this, so better contact one.com support and explain them the issue.

SMTP username is wrong you mean? i did not understood . i was using info@tamilfilm.se as recipient as you can see in first screenshot(To Mail). is this wrong? or all setup correct but one.com need to enable what?

I have done the SMTP setup in send mailer based on this:


from one.com support docs