codemorphis.com Forum Index codemorphis.com
Software development: pure and simple.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Email

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    codemorphis.com Forum Index -> Visual Programming Forum
View previous topic :: View next topic  
Author Message
gavin



Joined: 08 Sep 2004
Posts: 28

PostPosted: Sun Oct 02, 2005 6:10 am    Post subject: Email Reply with quote

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 Rolling Eyes

Gavin
Back to top
View user's profile Send private message Send e-mail
CodeMorphis



Joined: 02 Dec 2003
Posts: 252

PostPosted: Mon Oct 03, 2005 12:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
gavin



Joined: 08 Sep 2004
Posts: 28

PostPosted: Tue Oct 04, 2005 9:55 am    Post subject: Reply with quote

Thanks,

This helped a great deal. Very Happy

Gavin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    codemorphis.com Forum Index -> Visual Programming Forum All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group