I did not put sender parameter for sp_send_dbmail (the method which sends email to user). I checked the code but could not find the sender as well. From which address, sp_send_dbmail sends email from ? Do you know transact sql's this method ?
Thank you for your helps.
Cheers
Tonyukuk
Main sending from Database Mail account
https://learn.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sysmail-add-account-sp-transact-sql?view=sql-server-2017
Related
I want to set reply to address before user is sending outlook email. I want to run vbscript and set reply to address. Please share the code
Use the MailItem.ReplyRecipients collection.
I have user in my system who can send emails through my API. The API uses SendGrid to send the emails with their username as the sender + reply-to address.
user_1#mydomain.com
user_2#mydomain.com
user_3#mydomain.com
What I would like to do is allow people to reply to these emails but I'm unsure how to do this.
Obviously if I try to reply as is - I get an error saying the email couldn't be delivered.
Is there something to do with SendGrid which can handle previously unseen addresses #mydomain.com or do I need to do something to set them up initially in the first place?
The solution was to use incoming web-hooks.
[Sending a reply email via code]
Currently i am opening an email activity and manually sending replies to them by clicking on the reply button in the form.
I have written a plugin which triggers on creation of an email activity and sends out an notification email to the sender of that email activity.
But it goes out as a fresh email activity and not a reply.
Email should go out as a reply and not a fresh email.
Please help.
Regards,
Aamir Nawaz
If the e-mail you reply to does not have anything in the "Regarding" field, then the reply would also not have.
Depending on your use case, the incoming e-mail could be connected to a case, an account or an activity (typically).
In your code you should set the Regarding accordingly. If you do not have a Regarding in the original e-mail I would suggest reviewing your business case and decide on the flow.
In our system, if an e-mail is recieved it is scanned for CAS-###### reference in subject and body. If found it is connected to the existing case, if not a new case is created using either the known contact as customer or a place holder account (awaiting a CSR to create/correct contact and case). The creation of the case triggers an acknowledgement e-mail to the contact with case reference information. This e-mail is connected to the case.
I hope this helps you.
Br Nicolai
I'm working on a system that delivers bulk emails.
My question is how do I receive a copy of Non-Delivery notification to another email address?
The reason I need to do this , is so that I can programmatically create my own black lists.
Amazon SES somehow manges to do this, but how?
Any help would greatly be appreciated.
Thanks,
Jamie
It depends which MTA you are using (e.g. sendmail, qmail, postfix, etc), but most MTA's will log undeliverables, so you can get the non-deliverable addresses from the logs. Also, most MTA's will send a non-deliverable notice to back to the envelope sender of the original message.
I've got a web app which I'm sending emails from. I want the emails to appear to come from users of the system, but guessing that these will appear as spoofed emails as they aren't coming from where they are saying they come from.
I've looked around and it appears that the SENDER header fits the bill. Is this a good solution? Also which way round should it be used? SENDER is the users email? or SENDER is the an email address from the domain I'm sending from?
Thanks in advance
Dave
Who is doing the sending of the emails? From your description I would guess that some action of a user triggers sending an email. In that case, the user's email address belongs in the From header, and in any case, an email address for your web app should be in the Sender header because that is doing the actual sending of the email.
Of course, this is how it ideally works. I have encountered broken email programs that actually use the Sender header for replies if that is present instead of From, so if the receivers of the emails start replying to you, you will probably need to reconsider, but for now go with the "correct" approach.