help with distribution list email outgoing please

Use this forum if you have problems with a hMailServer script, such as hMailServer WebAdmin or code in an event handler.
Post Reply
User avatar
Pern
Normal user
Normal user
Posts: 46
Joined: 2006-09-07 21:14

help with distribution list email outgoing please

Post by Pern » 2011-01-13 01:25

id like to add a line at the bottom of the outgoing email for the distribution list subscribers that reads something like
example using distribution list church_prayer_list@domain.com



You have been sent this email because you (distribution subscribers sent to email ie:something@domain.com) are on the distribution list of church_prayer_list@domain.com

how would one do this please, or can someone point me in a direction thanks with code examples?

i assume it has to be part of the events script
Johnny - aka Pern
WebSite: dragonsworkshop.com ** Happy Holidays**

User avatar
mattg
Moderator
Moderator
Posts: 19989
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: help with distribution list email outgoing please

Post by mattg » 2011-01-13 01:41

Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
Pern
Normal user
Normal user
Posts: 46
Joined: 2006-09-07 21:14

Re: help with distribution list email outgoing please

Post by Pern » 2011-01-13 02:29

i did not dive into it and nothing poped out at me looking for a way to add the lines to a email, ill look it over again was hoping not to have to read the entire code, as its fairly involved i was hoping for a simple code snip for this
(and if i find it from the code sometime, not today) ill post it i guess too for others. again was not looking to read all that.
thx for the suggestion
Johnny - aka Pern
WebSite: dragonsworkshop.com ** Happy Holidays**

User avatar
mattg
Moderator
Moderator
Posts: 19989
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: help with distribution list email outgoing please

Post by mattg » 2011-01-13 05:06

adding the text to the bottom of an email is as simple as

Code: Select all

oMessage.Body = oMessage.Body & nl & "some text"
The real trick is to identify which messages to add the header to...
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
Pern
Normal user
Normal user
Posts: 46
Joined: 2006-09-07 21:14

Re: help with distribution list email outgoing please

Post by Pern » 2011-01-13 05:09

yes it will.

im hoping to make a distribution listing anyways, and then with that info i can make the email check for outgoing. i guess im gonna have to look at that code tomorrow, and see what i can get out of it.
Johnny - aka Pern
WebSite: dragonsworkshop.com ** Happy Holidays**

Post Reply