Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

TechTip: Using the QTMMSENDMAIL API

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • V.Mack
    replied
    Downloadable Code

    ** This thread discusses the article: TechTip: Using the QTMMSENDMAIL API **
    Attached please find the downloadable code for this article.

    Victoria Mack
    Executive Editor
    MC Press Online
    Attached Files
    Last edited by A.Grubb; 03-04-2019, 04:02 PM.

    Leave a comment:


  • Guest's Avatar
    Guest replied
    TechTip: Using the QTMMSENDMAIL API

    ** This thread discusses the article: TechTip: Using the QTMMSENDMAIL API **
    I tried the code you provided. It still comes across as an attachment. I did not want the user to have to open any attachment but able to view within the preview pane. If you come up anything else i would appreciate it. In the meantime, i'll research this QTMMSENDMAIL api you're talking about. thanks
    Last edited by A.Grubb; 03-04-2019, 04:02 PM.

    Leave a comment:


  • Guest's Avatar
    Guest replied
    TechTip: Using the QTMMSENDMAIL API

    ** This thread discusses the article: TechTip: Using the QTMMSENDMAIL API **
    The way its done is not pretty but it appears to work... Here's the SNDDST command I used. Its the "--PART.BOUNDARY.1:/NContent-Type: text/html:/N" that makes the difference. Everything beyond that point will be interpreted as HTML. Its kind of a kluge but it works. Jeff
    Code
    Last edited by A.Grubb; 03-04-2019, 04:02 PM.

    Leave a comment:


  • Guest's Avatar
    Guest replied
    TechTip: Using the QTMMSENDMAIL API

    ** This thread discusses the article: TechTip: Using the QTMMSENDMAIL API **
    Joe is right. You can't do this because the SNDDST command inserts the "content-type=text/plain" header in the email. This will cause anything you place in the *LMSG parameter to be interpreted as plain text not as HTML. sorry. Jeff
    Last edited by A.Grubb; 03-04-2019, 04:02 PM.

    Leave a comment:


  • J.Wells
    replied
    TechTip: Using the QTMMSENDMAIL API

    ** This thread discusses the article: TechTip: Using the QTMMSENDMAIL API **
    It is my understanding that there is no way to use SNDDST to send an email with embedded html. That is the appeal of using the QTMMSENDMAIL API. Joe
    Last edited by A.Grubb; 03-04-2019, 04:01 PM.

    Leave a comment:


  • Guest's Avatar
    Guest replied
    TechTip: Using the QTMMSENDMAIL API

    ** This thread discusses the article: TechTip: Using the QTMMSENDMAIL API **
    i'm trying to do the same. Create an email with html tags embedded in the body of the email itself. Not as an attachment but within the body of the email. I need to do this by ising the snddst command. thanks hutchinsm@classic-cable.com
    Last edited by A.Grubb; 03-04-2019, 04:01 PM.

    Leave a comment:


  • Guest's Avatar
    Guest replied
    TechTip: Using the QTMMSENDMAIL API

    ** This thread discusses the article: TechTip: Using the QTMMSENDMAIL API **
    i'm trying to do the same. Create an email with html tags embedded in the body of the email itself. Not as an attachment but within the body of the email. I need to do this by ising the snddst command. thanks hutchinsm@classic-cable.com
    Last edited by A.Grubb; 03-04-2019, 04:01 PM.

    Leave a comment:


  • J.Wells
    replied
    TechTip: Using the QTMMSENDMAIL API

    ** This thread discusses the article: TechTip: Using the QTMMSENDMAIL API **
    I figured it out - it was an authority issue! Public had no authority.
    Last edited by A.Grubb; 03-04-2019, 04:01 PM.

    Leave a comment:


  • J.Wells
    replied
    TechTip: Using the QTMMSENDMAIL API

    ** This thread discusses the article: TechTip: Using the QTMMSENDMAIL API **
    Out of curiosity, I modified the program that creates the file to write the file directly to the IFS. Unfortunately, the results are the same! Joe
    Last edited by A.Grubb; 03-04-2019, 04:00 PM.

    Leave a comment:


  • J.Wells
    replied
    TechTip: Using the QTMMSENDMAIL API

    ** This thread discusses the article: TechTip: Using the QTMMSENDMAIL API **
    Jeff, Thanks for the article! I have been wanting to experiment with this API for quite some time and your article was the perfect excuse. I have written a simple program that creates a mime message with embedded html. This file is created in a PF and I then use CPYTOSTMF to place it in the IFS. When I then attempt to send this email, nothing happens. The strange part is that I can open the mime message in a text browser (UltrEdit), save it, and then the email will go! I have debugged the program and QUSEI is blank after the call to SENDMAIL. What coulf I be doing wrong? Thanks, Joe
    Last edited by A.Grubb; 03-04-2019, 04:00 PM.

    Leave a comment:


  • Guest's Avatar
    Guest replied
    TechTip: Using the QTMMSENDMAIL API

    ** This thread discusses the article: TechTip: Using the QTMMSENDMAIL API **
    And then again, many of us use e-mail clients capable of rendering HTML but we explicitly disable the feature. A great way to differentiate spam from acceptable e-mail is that spammers usually send e-mails with HTML content. HTML content is also a great way to propogate viruses. If you absolutely have to have HTML rendering enabled in your e-mail client, at the very least disable JavaScript. Cheers! Hans
    Last edited by A.Grubb; 03-04-2019, 04:00 PM.

    Leave a comment:


  • Guest's Avatar
    Guest replied
    TechTip: Using the QTMMSENDMAIL API

    ** This thread discusses the article: TechTip: Using the QTMMSENDMAIL API **
    There is a way to include html in the email body. Simply change the "Content-Type:" from "text/plain" to "text/html". You also may need to change the "Content-Transfer-Encoding:" to "7bit". Remember that not some people still use the old ASCII-text email agents and will not be able to display the HTML correctly. The most common way to handle this is to include comments in your HTML that explain "If you are reading this..." then your email client cannot display HTML. Jeff
    Last edited by A.Grubb; 03-04-2019, 04:00 PM.

    Leave a comment:


  • Guest's Avatar
    Guest replied
    TechTip: Using the QTMMSENDMAIL API

    ** This thread discusses the article: TechTip: Using the QTMMSENDMAIL API **
    I enjoyed your article and It did come at a perfect time for me. One more thing, is there a way to include html in the body of the email.
    Last edited by A.Grubb; 03-04-2019, 04:00 PM.

    Leave a comment:


  • MCWebsite.Staff
    started a topic TechTip: Using the QTMMSENDMAIL API

    TechTip: Using the QTMMSENDMAIL API

    ** This thread discusses the article: TechTip: Using the QTMMSENDMAIL API **
    ** This thread discusses the Content article: TechTip: Using the QTMMSENDMAIL API0
    Last edited by A.Grubb; 03-04-2019, 03:59 PM.
Working...
X