ShahP Absent Member.
Absent Member.
392 views

Send email programatically

Jump to solution

Hallo,

I am trying to send email programatically to custom email ID, if the status field of the defect is changed.

Can anyone please help me with the code ?

Thank You very much in advance.

Regard's, Pratik

0 Likes
1 Solution

Accepted Solutions
Highlighted
OlaBerggren Acclaimed Contributor.
Acclaimed Contributor.

Re: Send email programatically

Jump to solution

Hi

Here is code for sending a mail

    dim tdc, header, body, subject

    set tdc = TDConnection
    header= "Mail header"
    body= "Mail Body"
    subject = "Subject"
    tdc.SendMail "user@company.com","",subject, body ,NULL,"HTML"

    tdc = nothing

Sender will be the logged in user

More info about Sendmail can be found in the API documentation http://alm-help.saas.hpe.com/en/12.53/api_refs/ota/topic8970.html



br /ola


Please mark post as solved if your problems or questions is/are resolved.
If this post was valuable to you, please consider kudo it.

 

 

.
1 Reply
Highlighted
OlaBerggren Acclaimed Contributor.
Acclaimed Contributor.

Re: Send email programatically

Jump to solution

Hi

Here is code for sending a mail

    dim tdc, header, body, subject

    set tdc = TDConnection
    header= "Mail header"
    body= "Mail Body"
    subject = "Subject"
    tdc.SendMail "user@company.com","",subject, body ,NULL,"HTML"

    tdc = nothing

Sender will be the logged in user

More info about Sendmail can be found in the API documentation http://alm-help.saas.hpe.com/en/12.53/api_refs/ota/topic8970.html



br /ola


Please mark post as solved if your problems or questions is/are resolved.
If this post was valuable to you, please consider kudo it.

 

 

.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.