SMTP settings to display name of sender instead of email.

Yogesh7 years ago

With the below configuration , I could send notification by email using the test button. but the notification mail shows email id in place of the sender's name. Please let me know what changes / addition do I make , so sender's name is displayed to the email recipient.

<entry key='mail.smtp.host'>smtp.gmail.com</entry>
<entry key='mail.smtp.port'>465</entry>
<entry key='mail.smtp.ssl.enable'>true</entry>
<entry key='mail.smtp.from'>traccar@gmail.com</entry>
<entry key='mail.smtp.auth'>true</entry>
<entry key='mail.smtp.username'>traccar@gmail.com</entry>
<entry key='mail.smtp.password'>password</entry>

Thanks in advance.

Yogesh.

Anton Tananaev7 years ago

Have you tried modifying from parameter to something like this:

Full Name <traccar@gmail.com>
Yogesh7 years ago

Hello Anton,

I am still trying it with no success yet ( based on your pointer above). Will update here.

Thank you

Yogesh

Anton Tananaev7 years ago

Do you get email after you changed it? What is from address in those emails?

wneubauer6 years ago

Hi Yogesh,

did you find out how to solve that idea?
I changed my parameter to

<entry key='mail.smtp.from'>Traccar Server <mymailaddress@mydomain.de></entry>

but then after a traccar restart my traccar webUI wouldn' come up anymore. Setting it back, everything o.k.

Anybody any idea?

Anton Tananaev6 years ago

Have you tried encoding angle brackets properly?

wneubauer6 years ago

tried that:

<entry key='mail.smtp.from'>Traccar Server&lt;mymailaddress@mydomain.de&gt;</entry>

Traccar will start but when I hit the sendmail button I´ll get an error message in the Traccar WebUI:

com.sun.mail.smtp.SMTPSendFailedException: 501 Syntax error in parameters or arguments
;
  nested exception is:
    com.sun.mail.smtp.SMTPSenderFailedException: 501 Syntax error in parameters or arguments
 - MessageException (NotificatorMail:132 < NotificationResource:63 < ...)

Do you have an example for encoding the angle brackets? ... never did that

Anton Tananaev6 years ago

That's exactly what I meant.

Did anyone managed to solve this issue?