powered by simpleCommunicator - 2.0.59     © 2025 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / PowerBuilder [игнор отключен] [закрыт для гостей] / link to internet adress in mailsession
1 сообщений из 1, страница 1 из 1
link to internet adress in mailsession
    #34811809
ziepniekkalns
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
как можно добавить ссылку в notetext на интерет адресс в mailsession ?


string ls_pdf_path
string ls_pdf_filename
mailSession mSes
mailReturnCode mRet
mailMessage mMsg
mailFileDescription mAttch


ls_pdf_path = f_get_general_parameter("pdf_path")
ls_pdf_filename = f_get_general_parameter("pdf_filename")

mSes = create mailSession
mRet = mSes.mailLogon(mailNewSession!)

IF mRet <> mailReturnSuccess! THEN
MessageBox("Mail", 'Logon failed.')
RETURN
END IF

// Populate the mailMessage structure
mMsg.Subject = 'invoice'
mMsg.NoteText = '2 invoices was created . link to ... '
mMsg.Recipient[1].name = sle_email.Text
mAttch.Pathname = ls_pdf_path + ls_pdf_filename
mAttch.Filename = ls_pdf_filename
mMsg.AttachmentFile[1] = mAttch


mRet = mSes.mailSend(mMsg)

IF mRet <> mailReturnSuccess! THEN
MessageBox("Invoice Mail", 'Mail not sent.')
else
MessageBox("Invoice Mail", 'Mail sent successfully.')
End if

mSes.mailLogoff()
DESTROY mSes
...
Рейтинг: 0 / 0
1 сообщений из 1, страница 1 из 1
Форумы / PowerBuilder [игнор отключен] [закрыт для гостей] / link to internet adress in mailsession
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]