++++++++
“`
4. **Save the Script:**
– Click on `File` > `Save`, and give your project a name (e.g., `AutoForwardEmails`).
5. **Authorize the Script:**
– Click on the `Run` button (triangle icon) and authorize the script by following the prompts to grant the necessary permissions.
6. **Set Up a Trigger:**
– Click on the clock icon in the toolbar (Triggers).
– Click on `+ Add Trigger`.
– Set the function to `forwardEmails`, deploy to `Head`, and select a time-driven trigger (e.g., `Every 5 minutes` or `Hourly`).
– Save the trigger.
7. **Label Incoming Emails:**
– Go back to your Gmail inbox (`intermediateforwardemail@yourcompanydomain.com `).
– Create a filter to automatically label incoming emails from `denis.oneil@olinkscorp.com`.
– Click on the search bar, then click on the `Show search options` icon.
– Enter ` generalemailaddress@monitoringsoftware.com’` in the `From` field.
– Click `Create filter`.
– Check the box `Apply the label` and choose `ForwardThis` (or create a new label if it doesn’t exist).
– Click `Create filter`.
### Explanation:
– **Google Apps Script**: The script checks for emails with the label `ForwardThis`, and if the email is from `generalemailaddress@monitoringsoftware.com’, it forwards it to `list-alerts@tts.message-service.org` with the `FROM` address set to `intermediateforwardemail@yourcompanydomain.com`.
– **Triggers**: The script runs periodically (based on the trigger settings) to check for new emails to forward.
This setup should ensure that the forwarded emails appear as if they are sent from `intermediateforwardemail@yourcompanydomain.com` to `list-alerts@tts.message-service.org`.
Remember that `intermediateforwardemail@yourcompanydomain.com` must be set as the Send-Only email address in the EmailToVoice.Net customer account profile.
Updating the Gmail Alternative
If you need to change the Google Apps Script after it has been deployed in a production environment, you can follow these steps. We are not saying this is the only way or even the best way to change existing script code, but it is an alternative for changing the script code.
You can create a new project with a unique name and copy your script code into the new project. Then rename remove the old project.
Create a New Project:
o Go to Google Apps Script.
o Click on the New project button.
2. Copy the Script Code:
o In the new project, copy your existing script code from the old project.
3. Paste and Save the Code:
o Paste the copied code into the new project’s script editor.
o Click on File > Save and give your project a new name.
4. Set Up Triggers Again:
o Recreate any necessary triggers for the new project by following the steps to add triggers.
By following these steps, you should be able to edit and save your Google Apps Script successfully.
There may be a more dynamic method than deleting and renaming a project. Please investigate for yourself.
Outlook Email Alternative
Another solution to using Gmail is using an Outlook account. Again, Gmail does not retain the name of the forwarding email address as the FROM email address after the forwarding. Outlook does retain the email address of the forwarding email as the FROM email address.
Here’s a possible way you can set it up.
Setting Up Automatic Forwarding in Outlook
1. Log in to Your Outlook Account:
Access your Outlook account, such as ‘intermediateforwardemail@yourcompanydomain.com’
Set Up Email Forwarding:
Click on the gear icon (Settings) in the upper right corner.
Select “View all Outlook settings” at the bottom.
Navigate to “Mail” > “Forwarding”.
Check the box for “Enable forwarding”.
Enter the email address ‘list-alerts@tts.message-service.org’
Optionally, check the box for “Keep a copy of forwarded messages” if you want to retain a copy in the original mailbox.
Click “Save”
Create a Rule for Specific Sender:
Go to “Mail” > “Rules”.
Click on “Add new rule”.
Give your rule a name (e.g., “Forward alert Emails to Phones”).
Under “Add a condition”, select “From” and enter ‘generalemailaddress@monitoringsoftware.com’
Under “Add an action”, select “Forward to” and enter ‘list-alerts@tts.message-service.org’
Click “Save”

Advantages of Using Outlook
By using Outlook, you can achieve the desired email forwarding behavior more effectively than with Gmail’s standard forwarding features. When emails are forwarded from an Outlook account, the FROM address will be the Outlook account, not the original sender’s address.
Conclusion
In all cases, please do your investigation of these alternatives. We at EmailToVoice.Net are not experts in email forwarding and new features from different providers can be added at any time. We specialize in converting email content into a nice-sounding voice in many dialects or into an SMS or rich text secure message via SMS.
Test all changes before going into production. And then consider setting limits so that if there is a problem with your code, the impact is limited.
Please contact us to learn more about how we can assist you in your mission-critical business communications needs.