Share via

From user parameter in Excel VBA code using SendGrid smtp

Zahid Butt 966 Reputation points
2022-03-11T13:47:07.817+00:00

Hi,

I am already using "in.hes.trendmicro.com" to send excel reports in email with "CDO.Message".
Now we need to change smtp to SendGrid.

When user receives email in mail box it shows "apikey on behalf of Test Report<xxx@xxxxxxxxxxxxx .com>".
I have mentioned "Test Report<xxx@xxxxxxxxxxxxx .com>" in from user & its working fine with "in.hes.trendmicro.com".

Any thoughts please.

Thanks

Developer technologies | Visual Basic for Applications
0 comments No comments

2 answers

Sort by: Most helpful
  1. Zahid Butt 966 Reputation points
    2022-09-15T15:45:47.813+00:00

    Hi,

    Sorry for late response.
    We have fixed the issue by using two separate users , one for senduser "apikey" parameter with its password & other for fromuser "Test Report<xxx@xxxxxxxxxxxxx .com>" parameter.

    We were using one same user for both parameters at first.

    Regards,

    Was this answer helpful?

    0 comments No comments

  2. Zahid Butt 966 Reputation points
    2022-03-11T20:47:19.71+00:00

    Hi,
    I got below link while searching , this might help not confirmed, I will talk to my network team to make required changes, so lets see.

    https://docs.sendgrid.com/ui/account-and-settings/how-to-set-up-domain-authentication

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.