The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Sending an Email
Posted: 17 Oct 06 9:20 AM
|
fiogf49gjkf0d I have a form where the user fills in some information and when the submit button of the form is clicked I want to send an email with the user information to a mailbox. Can anyone suggest me how can it be done in Sales Logix. |
|
|
|
Re: Sending an Email
Posted: 18 Oct 06 2:48 AM
|
fiogf49gjkf0d Hi Rekha,
Basically you need to send your form either to a script (asp or cgi) that handles Sendmail, if you need this info to be stored in SLX as well then you will need a two step process; First submit the original form to your sendmail page, then create a hidden form within your sendmail page that is then automatically sent to your SLX action where the DB post can take place.
-- Duncan |
|
|
|
Re: Sending an Email
Posted: 18 Oct 06 11:09 AM
|
fiogf49gjkf0d I've also used "CreateObject" with the CDONTS object in a SalesLogix web action that will allow you to send an email. That way you can keep everything native to SalesLogix.
Jeff
|
|
|
|
Re: Sending an Email
Posted: 18 Oct 06 12:23 PM
|
fiogf49gjkf0d Is writing a web app which creates a local mail item (on the webclient computer) a good idea??
I think we need to use some server based mailing agent and NOT a client one.In Traditional ASP we use Server.createobject and in asp.net, we use system.web.mail for sending emails and both of these are server based. |
|
|
|
Re: Sending an Email
Posted: 18 Oct 06 12:45 PM
|
fiogf49gjkf0d Nandu,
As far as the CDONTS object, everything is happening server side in a SalesLogix web action, so there is nothing happening on the client side, making it a valid altenative.
Jeff
|
|
|
|
Re: Sending an Email
Posted: 31 Oct 06 9:43 AM
|
fiogf49gjkf0d Rekha,
I agree with Duncan's approach. Most Hosting companies will have a facility that would allow you to send email via a CGI Script or an ASP page.
Another alternative if you don't have that avaiable is to write your own. I have taken several approaches in the past, but currently if .NET 2005 is an option to develop it I would rather do so. Reason being is that the SMTP mail object will read the configuration file for parameters, so you only need to feed it the basic information (e.g. Subject and Body).
Again, there are other options as noted, but this option allows you to do SMTP easily.
|
|
|
|
Re: Sending an Email
Posted: 31 Oct 06 3:50 PM
|
fiogf49gjkf0d OK, so i created this customer signup page in aspnet and linked straight from the login screen.Nicely integrated and works OK with no problems.But the link shows the actual url in the window status and thus those tech savvy ones out there can link to my registration page directly without coming in thru Saleslogix.
Is there a way to ensure that this page is infact refered from my customer portal signon page?remember i am on the logon page;so i dont have any access to a cookie or session variable which i can crosscheck.
Thanks! -Rekha |
|
|
|
Re: Sending an Email
Posted: 31 Oct 06 4:15 PM
|
fiogf49gjkf0d Well, there are probably several ways to do so, but just thinking on a low tech one:
What about changing the anchor tag so that the HREF = "javascript:goToPage()"? Place the goToPage function on an Included Javascript file.
Again, this is a low tech way to keep some of the savy users from just reading the source of the page.
There are many other alternatives out there and I know others will fill you in |
|
|
|
Re: Sending an Email
Posted: 01 Nov 06 1:15 PM
|
fiogf49gjkf0d You can check the page's referrer. The referrer will show you where the user came from. If the referrer did not come from your portal signon page then display some message or redirect back to the signon page. Otherwise do the magic.
-Ryan |
|
|
|
Re: Sending an Email
Posted: 13 Nov 06 10:23 AM
|
fiogf49gjkf0d Is it URLrefferer that you are referring to ? It is blocked most places thru proxies or something...In this case , since it is coming from the same base URL , will it work? |
|
|
| |
|