Page 1 of 1
Change oder Update From
Posted: 2020-04-29 14:13
by much_r
Hi,
is there a possibility to change "From" with the email address of the local user?
Example:
From (Senderaddress) = "
test@rubner.com" or "empty From"
User in hMailserver = "
mailuser@company.com"
Change "
test@rubner.com" to "
mailuser@company.com" and then send
Or even change "empty From" to "
mailuser@company.com" and then send
Thanks and greetings
Michael
Re: Change oder Update From
Posted: 2020-04-29 14:17
by RvdH
Why you would like to do something like that?
Re: Change oder Update From
Posted: 2020-04-29 14:39
by much_r
Hi,
thanks for the answer
An important application unfortunately sends mails with empty senders. Unfortunately I can't change that ...
Our SPAM filter blocks emails with empty senders.
Greetings
Michael
Re: Change oder Update From
Posted: 2020-04-29 14:46
by RvdH
What are we talking about? The Envelope From or the Message From?
Hint
Code: Select all
Sub OnAcceptMessage(oClient, oMessage)
if Len(oMessage.FromAddress)=0 Then
oMessage.FromAddress = "new@example.com"
oMessage.From = "<new@example.com>"
oMessage.save
end if
End Sub
Re: Change oder Update From
Posted: 2020-04-29 16:10
by much_r
That is exactly what I have been looking for.
Many thanks
best greetings
Re: Change oder Update From
Posted: 2020-04-29 21:41
by katip
you can also try General Rules.
if From contains "
test@rubner.com"
Set Header value From "
mailuser@company.com"
empty From is tricky. to identify only outgoing mails you have to lookup a header in Custom header field such as Message-ID which (usually) contains your domain name or better a specific header added by your sending application (or even Subject if it adds something significant there).
if From doesn't contain "@" and Custom header field X-Yz contains "something significant"
Set Header value From "
mailuser@company.com"
Re: Change oder Update From
Posted: 2020-05-26 18:41
by much_r
Hi katip
Thank you.
The solution with the script works very well.
Greetings