Hi, i want to send a verification link to user when the user register in the app. i successful to send email to user, but how to send verfication link to user?
i had create the email template with some text message, but when i send the email to user, the email shown is the message that i write in code but not the content that i set in template. Why? Does App42 got provide default email verification link that send to user and ask user to click on that link to verify?
NSString *sendTo = @"testing@gmail.com";
NSString *sendSubject = @"Feedback";
NSString *sendMsg = @"http://google.com";
NSString *senderEmailId = @"admin@gmail.com";
NSMutableDictionary *otherMetaHeaders = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"Verification",@"Email", nil];
EmailService *emailService = [App42API buildEmailService];
[emailService setOtherMetaHeaders:otherMetaHeaders];
[emailService sendMail:sendTo subject:sendSubject Message:sendMsg fromEmail:senderEmailId emailMIME:PLAIN_TEXT_MIME_TYPE completionBlock:^(BOOL success, id responseObj, App42Exception *exception)
{
if (success)
{
Email *email = (Email*)responseObj;
NSLog(@"from is %@" , email.from);
NSLog(@"to is %@" , email.to);
}
else
{
NSLog(@"Exception = %@",[exception reason]);
NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
NSLog(@"App Error Code = %d",[exception appErrorCode]);
NSLog(@"User Info = %@",[exception userInfo]);
}
}];