You may need to run your emails through a third party E-mail delivery. I had problems with some emails not getting throgh using my own provider and I have found SMTP2go to work successfuly with most emails going through with attachments and all. If you search this forum there is lots of info. Below is the code I use successfully daily. I just build my variables and have the section of code below run them.
There may be simpler better and more sophisticated ways to accomplish your goals with Sbasic but I posted the code below for reference if nothing else.
Hope it may help.
Vcomplete = "your E-mail to " + @Replace(Vemaildata, "@", "@@") + " was successful!" + @NewLine() + @NewLine() //+ Vbody
if(@AskUser("You are about to send an Email to ", @Replace(Vemaildata, "@", "@@"), " Continue?")) { b = @SendMail("smtp2go.com", vsubject, VFromEmail, Email, "", "", vbody, "pass@xxxxxx.com", "password", "") voutcome = b if(b = "0") { @MsgBox("", vcomplete, "") //Do stuff Email_WelcomeSentDate = @date Status = "005" StatHistory005 = @Date + " " + @serverTime() StatHistoryby005 = @userId + " " + @Date + " " + @ServerTime() StatusAllupdatesub() FormCommit("") } else { @MsgBox("E-mail was not successful", "", "") } } } else { @MsgBox(vMsg, "", "") } } else { @MsgBox("A welcome Email has been previously sent ", "", "you can not re-send using this button") }
|