SendGrid slight issue

Solarion

Honorary Master
Joined
Nov 14, 2012
Messages
28,051
Reaction score
17,804
Morning everyone.
In short, what emailing system would you guys recommend? What do you use?

I have run into a small snag while experimenting with SendGrid. I am wanting to set up emails to be sent on behalf of someone. So you will see who the email was sent from with a "on behalf of" and then when you hit Reply it will reply to that on behalf of email address.

Now I have realized that SendGrid does not have support for this or at least non that I can see. What alternatives do I have out there to actually getting something like this working in a C# app.

Feedback appreciated!
 
Send grid will allow you to do that, but only for a specific domain.

You will also need to add SPF and dmarc TXT records to your domains DNS. If you don’t do this, the mail will end up in spam and marked as phishing

This is true for every service.
 
Morning everyone.
In short, what emailing system would you guys recommend? What do you use?

I have run into a small snag while experimenting with SendGrid. I am wanting to set up emails to be sent on behalf of someone. So you will see who the email was sent from with a "on behalf of" and then when you hit Reply it will reply to that on behalf of email address.

Now I have realized that SendGrid does not have support for this or at least non that I can see. What alternatives do I have out there to actually getting something like this working in a C# app.

Feedback appreciated!
Sendgrid is just a mail server, the from/reply to etc is defined in the email packet you submit.

{
"personalizations": [
{
"to": [
{
"email": "[email protected]",
"name": "John Doe"
},
{
"email": "[email protected]",
"name": "Julia Doe"
}
],
"cc": [
{
"email": "[email protected]",
"name": "Jane Doe"
}
],
"bcc": [
{
"email": "[email protected]",
"name": "Jim Doe"
}
]
},
{
"from": {
"email": "[email protected]",
"name": "Example Sales Team"
},
"to": [
{
"email": "[email protected]",
"name": "Janice Doe"
}
],
"bcc": [
{
"email": "[email protected]",
"name": "Jordan Doe"
}
]
}
],
"from": {
"email": "[email protected]",
"name": "Example Order Confirmation"
},
"reply_to": {
"email": "[email protected]",
"name": "Example Customer Service Team"
},
"subject": "Your Example Order Confirmation",
"content": [
{
"type": "text/html",
"value": "<p>Hello from Twilio SendGrid!</p><p>Sending with the email service trusted by developers and marketers for <strong>time-savings</strong>, <strong>scalability</strong>, and <strong>delivery expertise</strong>.</p><p>%open-track%</p>"
}
],
"attachments": [
{
"content": "PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KCiAgICA8aGVhZD4KICAgICAgICA8bWV0YSBjaGFyc2V0PSJVVEYtOCI+CiAgICAgICAgPG1ldGEgaHR0cC1lcXVpdj0iWC1VQS1Db21wYXRpYmxlIiBjb250ZW50PSJJRT1lZGdlIj4KICAgICAgICA8bWV0YSBuYW1lPSJ2aWV3cG9ydCIgY29udGVudD0id2lkdGg9ZGV2aWNlLXdpZHRoLCBpbml0aWFsLXNjYWxlPTEuMCI+CiAgICAgICAgPHRpdGxlPkRvY3VtZW50PC90aXRsZT4KICAgIDwvaGVhZD4KCiAgICA8Ym9keT4KCiAgICA8L2JvZHk+Cgo8L2h0bWw+Cg==",
"filename": "index.html",
"type": "text/html",
"disposition": "attachment"
}
],
"categories": [
"cake",
"pie",
"baking"
],
"send_at": 1617260400,
"batch_id": "AsdFgHjklQweRTYuIopzXcVBNm0aSDfGHjklmZcVbNMqWert1znmOP2asDFjkl",
"asm": {
"group_id": 12345,
"groups_to_display": [
12345
]
},
"ip_pool_name": "transactional email",
"mail_settings": {
"bypass_list_management": {
"enable": false
},
"footer": {
"enable": false
},
"sandbox_mode": {
"enable": false
}
},
"tracking_settings": {
"click_tracking": {
"enable": true,
"enable_text": false
},
"open_tracking": {
"enable": true,
"substitution_tag": "%open-track%"
},
"subscription_tracking": {
"enable": false
}
}
}


On behalf of in sendgrids case is when you have multiple accounts or users and want to send impersonating one of those, thats sendgrid users though, not mail if I follow correctly. Basically a sub account user.

 
@Solarion when you say behalf of, why not just add some test to the subject or mail body in your application code to indicate this? like

blah blah blah

freddy kruger
on behalf of MyBroadband government.....

I've only really seen behalf of in a mail scenario in exchange and thats predominantly internal when sending, not really indicated programmatically AFAIK.
 
How do you get that json format?

At the top of the request body section it says schema / example, hit example and it gives the json.

1657272048419.png


I could yes, but I'm wanting it where the receiver will just hit Reply and then it will go to eg [email protected].



Alrighty. I'll need to just speak to my client about that. I think there may be some confusion.

Edit: How do I replicate that? To get that ReplyTo in Outlook? Just so I understand the process.
In outlook , you can add address fields to a mail.

1657272144398.png

havent used in a while but I think its this

1657272196844.png

1657272340140.png
 
Ah thanks. And if I want the email to say On Behalf Of. So I would have something like:

from [email protected] on behalf of [email protected].

Is that possible programmatically or does Outlook do that with some settings?
 
Ah thanks. And if I want the email to say On Behalf Of. So I would have something like:

from [email protected] on behalf of [email protected].

Is that possible programmatically or does Outlook do that with some settings?
I've never seen it from a reciepient side that I recall, I know when I send a mail, if I have ownership over multiple mailboxes I get the option to send on behalf of but the actual mail uses the desired mailbox as the from. Unless outlook detects it but mail packet/standard doesnt have such a field AFAIK.

Sendgrid is just really your SMTP server, so it takes whatever you submit.
 
Top
Sign up to the MyBroadband newsletter
X