View previous topic :: View next topic |
Author |
Message |
gavin
Joined: 08 Sep 2004 Posts: 28
|
Posted: Sun Oct 02, 2005 6:10 am Post subject: Email |
|
|
Hi,
I would like to be able send an email via my program with a button component. I have tried to use the email component but cannot understand where the from and smtp info must be aquired from.
I noticed that on the Synopsis security page, you have a send codes button that when pressed automatically launches my email program with the relevant info.
I need to be able to do the same.
Please help
Gavin |
|
Back to top |
|
|
CodeMorphis
Joined: 02 Dec 2003 Posts: 252
|
Posted: Mon Oct 03, 2005 12:03 pm Post subject: |
|
|
The From field of the Send Mail component is simply the email address from which you send. The Smtp server field is the email server through which you send email. This is determined by your ISP or web hoster and you should already have it assigned in your email client (check the properties of your email account setup in your email program to see this).
The Send Mail component allows you to send email without intervention by the user. The alternate way to send mail is to attempt to bring up the default email client, format the email message and allow the user to make modifications. In this case the user must click the send email button to complete the process.
You can do this by using the Launch Program component. Put the following in the File/dir argument:
mailto:USER@DOMAIN.COM
where "USER@DOMAIN.COM" is the target email address.
You can send to multiple addressees with the use of a comma separator:
mailto:USER1@DOMAIN.COM,USER2@DOMAIN.COM
You can also automatically add a subject string:
mailto:USER@DOMAIN.COM?subject=Email subject text here
To include text in the email:
mailto:USER@DOMAIN.COM?subject=Email subject text here?&body=Email body text here
To Cc and Bcc, use the following syntaxes:
mailto:USER1@DOMAIN.COM?&cc=USER2@DOMAIN.COM
mailto:USER1@DOMAIN.COM?&bcc=USER2@DOMAIN.COM
The Cc and Bcc syntaxes can be used in combination with any of the other above syntaxes.
Note that the "mailto" technique might not work on the user's machine. This depends on the user having a default email client. If this condition is not met, then the technique will fail. A more robust solution is to use the Send Mail component which can be fed whatever email details required. |
|
Back to top |
|
|
gavin
Joined: 08 Sep 2004 Posts: 28
|
Posted: Tue Oct 04, 2005 9:55 am Post subject: |
|
|
Thanks,
This helped a great deal.
Gavin |
|
Back to top |
|
|
|