AppleScript to send auto reply to Reply To email address from website submission

Hello,


I need help creating an AppleScript.


I’m running into an issue with the auto replies for comments submitted through the website. When the email comes to the inbox it's as if it comes from our bosses email. When the reply button is manually pressed it sends the reply to the person who submitted the comment in the Reply To field. However, when an auto-reply is sent it goes to the bosses email. 


Any ideas on how to create an AppleScript to have an Auto Reply that goes to the address in the Reply To field?

Posted on May 29, 2023 4:14 PM

Reply

Similar questions

5 replies

May 29, 2023 5:03 PM in response to DAX_MAX

DAX_MAX wrote:

I need help creating an AppleScript.


I’d suggest reconfiguring the website to use a less hazardous email sending address. Like “Website Feedback” or some such. (You will probably need to create a login for that new sender.) Reconfiguring the sending address will make sorting the feedback mail simpler, and (more importantly) reduces the chances that somebody gains access to the web server and uses that same email account access (access which often includes the related email password!) to fake your boss’s identity to scam your own staff.

May 30, 2023 9:08 AM in response to DAX_MAX

You might not be able to, but your boss can.


Ask your boss if they want mail from their own mail address being sent by a web server exposed to ~everyone, and particularly if there is any chance that web server might get breached.


One mail message from the boss’s address sent to your accounting department asking for a wire transfer of a million dollars for “Boss’s Urgent New Project” is exactly how more than a few massive frauds have happened.

May 30, 2023 11:46 AM in response to DAX_MAX

DAX_MAX wrote:

Do you have any insight on creating the AppleScript? That is what I need at the moment, as the other change may not be possible for some time.


You’ll need a different mail client, then. There’s no means—no hook and no API—provided to rewrite the SMTP headers within the Apple Mail client data store on macOS or on other Apple platforms.


The web server sets the SMTP headers involved here.


Which means fixing the web server to write the headers as required, or using a different mail client or mail transfer app that can process mail arriving via that mail account into some local mail clients or—preferably—into the customer relationship management (CRM) system or whatever app or package is where these mail messages are arriving at—and re-write the headers at that transfer.


The IMAPSYNC tool is in this general area, and there are php, Python, Perl and other apps that can read and process mail messages; that can be mail clients. This tool would replace the existing mail client, and rework the headers. And it can be somewhat fragile without some supporting mechanisms such as using launchd script or such for startup, as it would need to be running all the time. But AppleScript just isn’t set up to be a mail client.


It’s likely also possible to get Postfix or another mail server to rewrite the mail headers, but that access into the mail server probably isn’t available. If the CRM can’t do this, this is probably the second easiest.


Easiest fix here is that web server.

AppleScript to send auto reply to Reply To email address from website submission

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.