Page Index Toggle Pages: [1] 2  Send Topic Send Topic Print Print
Hot Topic (More than 10 Replies) sendmail (Read 2831 times)
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
sendmail
Jan 8th, 2006 at 5:33am
Print Post Print Post  
Hi -

Well, some time ago, I had  programmed my database to use my own e-mail program to send e-mail and have been very happy with it.  Click on a button and a new e-mail is opened pre-addressed.  When sent, I have a copy in my "Sent-Mail" folder, etc. etc.

But, now, I have experienced a new "toy" (sendmail) and I want to explore it further, since I am very excited about it.

One reason I am eager to use it is so that it will be easier for me to program for "clients."  Instead of having to be familiar with code for the various e-mail programs, I simply need to change the name of the out-going mail server, to match theirs, and all my other sendmail programming will work "as is."

I do have my own ideas but I am very curious as to whether you have any recommendations for recording (or at least knowing) (1) who the e-mail(s) was/were sent to (2) the fact that the e-mail(s) was/were actually sent (3) whether you keep a copy of the e-mail (and how & where) and (4) any other uses you have made of the sendmail program.

I used @msg to indicate "E-mail being processed to Name" but don't like the message line since it is obscure and stays until I remove it. 

One thing I have tried, so far, is to create a multi-line layout element for the body of the text to be written within the form  and, when the e-mail is sent, I "prefix" it with Sent to (name) and the date time sent.

Once again, I am interested in hearing from everyone who uses sendmail .... with other ways in which you have tweaked the programming.  It seems to me that the possibilities are endless.

Thanks!

  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: sendmail
Reply #1 - Jan 10th, 2006 at 12:54am
Print Post Print Post  
Hey guys -

Hasn't anyone told you the holidays are over?  Where is everyone?  lol

Seriously, I would really appreciate discussion - from users - on this topic.  I would like to hear some of the ways this feature has been used.

I am also curious how you handle "mass e-mails."  I can do it easily (myself) if I write the e-mail within the mass update program spec itself.  But this would not be too cool for users of the database who are not programmers - How can you provide mass update of sending e-mails for the "casual user?"
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: sendmail
Reply #2 - Jan 10th, 2006 at 8:39pm
Print Post Print Post  
Hello Spencer,

I have seen a handful of users who have a multi-line element on their form that stores the e-mail that was sent, when it was sent, and what address it was sent to.

I have seen one database that each time @SendMail() was used it would write out a line to a text file that included Date e-mail was Sent, Time e-mail was sent, e-mail Address, Subject of e-mail and e-mail Body. Then at the end of the week or whenever the user wanted to he opened up another database that was called EMailHistory, or something along those lines, Clicked a button and it imported all the data from that text file into new records and then deleted the text file. So each e-mail had it's own record. This way he could search his e-mails by whatever he wanted to.

I have seen a few users who bcc themselves in the @Sendmail() that way they have a copy in their e-mail program.

One database had a subform that when the e-mail button was clicked it would create a new subform record, put the date and time in it as well as what e-mail address the e-mail was sent to.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: sendmail
Reply #3 - Jan 10th, 2006 at 8:49pm
Print Post Print Post  
Hi Ray -

Thanks for your comments.  I had thought of most of that including the BCC which (I already had tried) so that I would know the message was sent, what it looked lke and to have a copy in my email program.

I was also thinking of putting something (a special "keyword") in the subject - so that I could have my e-mail program automatically divert it to a "special" folder for that purpose.  That way it wouldn't be mixed in with regular incoming mail.

I am still interested in hearing from others with ways in which they've used it and am especially interested in how to provide for "mass" e-mail without involving the user with programming.

Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Foster
Ex Member


Re: sendmail
Reply #4 - Jan 10th, 2006 at 9:10pm
Print Post Print Post  
Spencer,
Are you feeling OK? Shocked  Today your picture just does not look like you! Grin  Hope you get your bandwidth up. Cheesy 
Foster
  
Back to top
 
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: sendmail
Reply #5 - Jan 10th, 2006 at 9:12pm
Print Post Print Post  
Huh ?!?
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Foster
Ex Member


Re: sendmail
Reply #6 - Jan 10th, 2006 at 10:20pm
Print Post Print Post  
Spencer,
Sorry, I was just joking about your picture, which has been replaced by a MyFamily.com message that you have exceeded your bandwidth for the day! My apology for the confussion I caused.
  
Back to top
 
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: sendmail
Reply #7 - Jan 10th, 2006 at 10:55pm
Print Post Print Post  
Foster -

I totally forgot that my actual photo was stored on another web-site.  

And, yes, there was a "bandwith" problem on the other site which gave me that crummy message.  Unfortunately, it is a problem with MyFamily.com and I cannot get them to respond to me.  The are virtually useless when it comes to technical support.  It never occurred to me that the problem on MyFamily.com would then become a problem (for me at least) on this web-site. 

So, now I have a "real" question.  Is there some way to store my photo within this web-site, rather than having it linked to another?
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: sendmail
Reply #8 - Jan 11th, 2006 at 12:47am
Print Post Print Post  
Spencer,

In regards to your original question; we use the Sendmail command all day, everyday to keep our customers up to date on their order status, shipments, tracking numbers, invoicing, etc.

In more detail; we use Sesame as a Point of sale system that imports, creates, and maintains orders and generates invoices. When we need to email a customer, we press a button that runs an xlookup to an external database and grabs the appropriate email, and plugs in specific data into the email including links to tracking results, po#, items on our website, etc. (the links become active when the reader opens the email.) The emails are stored in a seperate database to keep our orders application small, and to allow easy adding and editing of the email without having to open Designer.

This is all done from a 'form view' subform in our orders form that shows the email (using @fedit command if the email is lengthy....thanks for the tip!) and shows the 'to', 'cc','bcc', etc on the form and a command button to "send email". If the mail is sent successfully, the 'user log' is updated with the date the mail was sent, the userid of who sent it, and the email address from the order that it was sent to.

We would be LOST without Sendmail. I hear that 2.0 will allow for passing user login and passwords to mail servers, which will be greatly appreciated as smtp servers are starting to require it.

I hope this gives you some things to think about. Let me know if you have any specific questions.

Steve

(Side note to Lantica: Comcast is rejecting all our emails from Sesame because our ISP is forcing us to use a 'public mail server' since we can not currently pass to them our login name and password. We'll be eagerly awaiting any updates to the sendmail command....Thanks!)

  
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: sendmail
Reply #9 - Jan 11th, 2006 at 12:53am
Print Post Print Post  
Ps. Does anyone use SendMail command to send an email in HTML mode? Is this possible with Sesame?

Steve
  
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: sendmail
Reply #10 - Jan 11th, 2006 at 2:55am
Print Post Print Post  
Steve -

Thanks much for the feedback.  This is the type of information I have been asking for and I appreciate it .... and, eager as I am, I would still like to hear from others on this topic.

It sounds to me like your e-mails are sent on a case-to-case basis, i.e. one at a time.

Do you ever send e-mails using mass update and, if so, how is that done?

There's another thing I would like to know:  Is it possible to send an attachment with an e-mail? Judging from the structure of the sendmail command I would think not.  If it is not presently do-able, that would make a wonderful program enhancement.  hint!  hint!

Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Steve_in_Texas
Senior Member
*****
Offline


No personal text

Posts: 893
Location: San Antonio
Joined: Feb 21st, 2004
Re: sendmail
Reply #11 - Jan 11th, 2006 at 3:54am
Print Post Print Post  
Spencer,

Your right, we send emails on a case-by-case basis. However, the same programming would work in a mass update, but you may run into problems with your ISP not allowing you to send 'bulk' emails (too many at one time).

This is just a huntch. You may want to call them to find out. Also, you may need to use the "Loiter" command to add a slight pause between each email....not sure.

Steve
  
Back to top
IP Logged
 
SpencerWulwick
Senior Member
Members
*****
Offline



Posts: 677
Location: Wilton Manors, Florida
Joined: Jan 16th, 2005
Re: sendmail
Reply #12 - Jan 11th, 2006 at 6:40am
Print Post Print Post  
Steve -

I don't think I will have a problem with my ISP but that is not my concern.

My conern is how do you set up e-mail to be used with mass update so that the user doesn't have to know programming.

The only way I could figure it out is to put it in the programming statement for a mass update.  The following code may NOT be correct.   I had it working right but wanted to make some modification to it and created some flaws which I just haven't had time to correct (although the last few times I ran it, it worked just fine).  In any event, I'm showing it here anyhow just to give you the idea.

Code
Select All
var ii as Int  


If
@askuser("Is this the message you want to send?","","")

then
{

ii = @SendMail("SMTP-SERVER.TAMPABAY.RR.COM",
"Testing SendMail", Email Address,
"swulwick@tampabay.rr.com","SpencerWulwick@myfamily.com",
"swulwick@tampabay.rr.com", "Hi " + First Name + ", " + @newline()
+ @newline() + LastEMail+@newline() +@newline() + "Spencer Wulwick" +@newline() +
"Silver sOlutionS of Tampa, Inc." + @newline() +  "www.SilversOlutionS.org")

If ii = "0"
then

@Msg("Your e-mail is being processed")
LastEMail = ("The following e-mail was sent to " + First Name + " " + Last Name + " on "
+ @month$(@date) + " " + @dom(@date) + ", " + @year(@date) + " at " + @time + @newline() + @newline()  
+ "Hi " + First Name + ", " + @newline () + @newline() + LastEMail+@newline() +@newline() + "Spencer Wulwick" +@newline() + "Silver sOlutionS of Tampa, Inc." +@newline() + "www.SilversOlutionS.org")}

else

@msg("Type your new message and press the Send button again again") 



(The code currently resides in the on-element-entry event of a command button named Send - which is right at the foot of the element where they type the body).

This is very simple - when used on a record-by-record basis,  because all the user has to do is enter the body of the e-mail in the LastEMail element.  The "greeting" and closing is automatically entered by the programming.  A copy of the email is kept in the database; however, ONLY the MOST RECENT e-mail.  The bcc that comes back to me goes in a special folder within my e-mail program for "historical" purposes as long as needed.

Now, individual e-mails are no problem because the user simply has to change the message in the field.  BUT, suppose I wanted to send the message to 50 recipients.  The only approach I could think of is to put the programming - including the "body" portion of the e-mail in the mass update program spec.  That is no problem for me, but I don't want the casual user to have to do that.

So, I guess what I'm asking is how can I have the user type the message in one record but have it sent to that person and 49 others?

The only thing I could think of is to retrieve the 50 records, type it in once and then mass update the other 49 records to contain the same e-mail "body" and then run mass update again, with a saved mass update spec. But somehow, I feel like I am missing something and that there should be a "smoother" way to do this.

So, that's what I'm looking for ideas about.  I have got to get this worked out because I am sending MYSELF HUNDREDS of e-mails and I AM TIRED OF HEARING FROM ME.  I even sent a few cc's to Ray to see whether he was getting them; however, I never heard from him.  (I guess he didn't want to encourage me to keep doing it).  lol

Anyhow, I just want to "master" this issue and move on to other things.  After all, I don't want to look like a "complete" dummy when Erika gets here to train me. Speaking of which:

JUST 13 MORE DAYS TO GO!!!


Thanks!
  

- Spencer

    ** Practice random kindness & senseless acts of beauty!
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: sendmail
Reply #13 - Jan 11th, 2006 at 3:54pm
Print Post Print Post  
Quote:
There's another thing I would like to know:  Is it possible to send an attachment with an e-mail? Judging from the structure of the sendmail command I would think not.  If it is not presently do-able, that would make a wonderful program enhancement.  hint!  hint!


In the current version you can not attach an attachment to a message sent by @SendMail(). I believe that version 2 may have this ability.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2482
Joined: Aug 20th, 2003
Re: sendmail
Reply #14 - Jan 11th, 2006 at 4:03pm
Print Post Print Post  
Quote:
So, that's what I'm looking for ideas about.  I have got to get this worked out because I am sending MYSELF HUNDREDS of e-mails and I AM TIRED OF HEARING FROM ME.  I even sent a few cc's to Ray to see whether he was getting them; however, I never heard from him.  (I guess he didn't want to encourage me to keep doing it).  lol


Hello Spencer,

I did receive the e-mails from you. I figured they did not need a reply and moved on to actual support requests.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Page Index Toggle Pages: [1] 2 
Send Topic Send Topic Print Print